Using variables in menu template

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Using variables in menu template

Post by Dr.CSS »

CMSMS 1.3

Wasn't sure if this is the right thread but I found it here...

I'm using this in a menu template it works great for getting the root page title...

{$cgsimple->get_root_alias('','root_alias')}{$cgsimple->get_page_title($root_alias)}

Here...

{if $count > 0}

{$cgsimple->get_root_alias('','root_alias')}{$cgsimple->get_page_title($root_alias)}
{foreach from=$nodelist item=node}
bla bla bla....

This is so a click doesn't send it to home page

Customer/designer wants root page title in left menu but I can't get it to be the link to itself, keeps going to the last url in menu items/page structure, and if it's the page your on like [url=http://=http://touareg.websitewelcome.com/~milesfin/index.php?page=about-usabout%20us]about us[/url], root page with children, it doesn't/I can't get it to show as active...

I've tried every form of {if} I can think of and premutations of root_url, $node->parent, if currentpage, etc.etc...
Post Reply

Return to “CMSMS Core”