Colombia Humana Posted September 6, 2018 Share Posted September 6, 2018 Hi there, I was wondering if its possible to show the sidebar everywhere, not only in the index page. Regards Link to comment Share on other sites More sharing options...
ehren. Posted September 6, 2018 Share 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. Link to comment Share on other sites More sharing options...
Colombia Humana Posted September 6, 2018 Author Share 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 Link to comment Share on other sites More sharing options...
Colombia Humana Posted September 6, 2018 Author Share 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? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.