Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted September 6, 20186 yr Hi there, I was wondering if its possible to show the sidebar everywhere, not only in the index page. Regards
September 6, 20186 yr Yes, that's possible. You just need to configure it for each view (forum view, topic view, etc) using the Block Manager. There are a few exceptions such as profile pages, but most pages allow the sidebar.
September 6, 20186 yr Author Hi @ehren. In profile pages, for example, I believe I'd have to modify the templates manually? If so, would copying the following code be sufficient? {template="sidebar" if="theme.sidebar_position == 'left'" app="core" group="global" params="'left'"} Regards
September 6, 20186 yr Author Hi there, From globalTemplate I managed to display it properly (and custom css), but certain pages don't show the sidebar contents. Inside sidebar I found that by removing the whole conditional: {{if (isset( \IPS\Output::i()->sidebar['enabled'] ) and \IPS\Output::i()->sidebar['enabled'] ) && ( ( isset( \IPS\Output::i()->sidebar['contextual'] ) && trim( \IPS\Output::i()->sidebar['contextual'] ) !== '' ) || ( isset( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) && count( \IPS\Output::i()->sidebar['widgets']['sidebar'] ) ) || ( \IPS\Dispatcher::i()->application instanceof \IPS\Application AND \IPS\Dispatcher::i()->application->canManageWidgets() ) || $adsForceSidebar )}} Everything displays correctly in every page. However, I don't think I should remove the whole conditional; but since I can't interpret it properly, I don't know what is the parameter that states its visibility... Any advise?
Archived
This topic is now archived and is closed to further replies.