nickia Posted December 29, 2011 Share Posted December 29, 2011 Hi, My whmcs has a sidebar which is required except in the Knowledge Base section. I want this section to take up the entire page with and not display the sidebar. What file should I look into? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 31, 2011 Share Posted December 31, 2011 If you're talking about the portal template, the stuff you're looking for is in footer.tpl. You'll need to add a smarty conditional in there to not display it for the knowledgebase. Something like this: {if $pagetitle neq "Knowledgebase"} <!-- SIDE BAR CODE HERE --> {else} <!-- SIDE BAR SUPPRESSED --> {/if} 0 Quote Link to comment Share on other sites More sharing options...
drew13 Posted January 2, 2012 Share Posted January 2, 2012 If you're talking about the portal template, the stuff you're looking for is in footer.tpl. You'll need to add a smarty conditional in there to not display it for the knowledgebase. Something like this: {if $pagetitle neq "Knowledgebase"} <!-- SIDE BAR CODE HERE --> {else} <!-- SIDE BAR SUPPRESSED --> {/if} This works only if you are using olny one English language. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 3, 2012 Share Posted January 3, 2012 This works only if you are using olny one English language. Then use: {if $pagetitle neq $LANG.knowledgebasetitle} 0 Quote Link to comment Share on other sites More sharing options...
Sitepearl Posted January 3, 2012 Share Posted January 3, 2012 Or you can use this and check by filename (knowledgebase.php) {if $filename == 'knowledgebase'} {/if} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.