Page 1 of 1

Using variables in menu template

Posted: Sun Jun 15, 2008 12:43 am
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...