At the moment I have my homepage including $navbar as per the default setting. How would I be able to specify it to call up a different navbar template i.e. navbar2 if a guest was viewing the page and restrict this to one page or area of the site, in my case an extra page I've added with a wrapper to become the homepage.
I don't want to do it with a conditional within the navbar file as it would make the change sitewide - if possible I want it so on the page wrapper where it says $navbar, I can somehow wrap some conditionals around it and then throw up the second navbar page. Would this be as simple as $navbar2 or would it have to be a bit more complicated?
Would the following work
or would it be advisable to use usergroups (if so, I'm not sure of the code on this)?
I don't want to do it with a conditional within the navbar file as it would make the change sitewide - if possible I want it so on the page wrapper where it says $navbar, I can somehow wrap some conditionals around it and then throw up the second navbar page. Would this be as simple as $navbar2 or would it have to be a bit more complicated?
Would the following work
Code:
<if condition="$bbuserinfo['userid'] == 0"> $navbar2 <else /> $navbar </if>
Comment