Section Header - problem with links

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

Re: Section Header - problem with links

Post by Dr.CSS »

A link to the site would help...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Section Header - problem with links

Post by Dr.CSS »

Go to menu manager and import the cssmenu.tpl into DB then open it and look at the part about "if sectioheader and ***" menuactive menuparent etc. where it adds all this...

<li class="menuactive menuparent parent"><a class="menuactive menuparent parent" href="#">
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Section Header - problem with links

Post by Dr.CSS »

What version of CMSMS?...

Sorry should have asked this first thing, actually you should have said in first post...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Section Header - problem with links

Post by Dr.CSS »

It seems to be coming from this line, last in menu template...

href="{$node->url}"><span>{$node->menutext}</span></a>

Since there is no URL it inserts the #, I would just for a test add a number in it to see...

href="6{$node->url}"><span>{$node->menutext}</span></a>

If that is where it comes from you can do an {if $node->type == 'sectionheader'} {else}href="{$node->url}"{/if}>
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Section Header - problem with links

Post by Dr.CSS »

Did you try using the code I posted in the menu where you say it gets the # ?...
Post Reply

Return to “CMSMS Core”