Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Colombia Humana Posted September 6, 2018 Posted September 6, 2018 Hi there, I was wondering if its possible to show the sidebar everywhere, not only in the index page. Regards
ehren. Posted September 6, 2018 Posted September 6, 2018 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.
Colombia Humana Posted September 6, 2018 Author Posted September 6, 2018 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
Colombia Humana Posted September 6, 2018 Author Posted September 6, 2018 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?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.