[SOLVED] menu manager title tag

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
essexboyracer
Forum Members
Forum Members
Posts: 85
Joined: Wed Jun 20, 2007 5:40 pm

[SOLVED] menu manager title tag

Post by essexboyracer »

Hi All,

I am looking to try and modify the menu so it adds an title tag (for SEO). I have got as far as adding the tag and content into the tag, specifically just the menu entry name;

Code: Select all

tabindex="{$node->tabindex}" {/if}[b]title="{$node->menutext}"[/b]{if $node->target ne ""} 
This is great, but it would be better if the title content could be custom rather than just repeating the menu name. I tried adding the {description} tag into the above, but it repeats the same for every menu entry.

Anyone any ideas?

Regards
Oli
Last edited by essexboyracer on Sat Nov 17, 2007 9:23 am, edited 1 time in total.
alby

Re: menu manager title tag

Post by alby »

essexboyracer wrote: Hi All,

I am looking to try and modify the menu so it adds an title tag (for SEO). I have got as far as adding the tag and content into the tag, specifically just the menu entry name;

Code: Select all

tabindex="{$node->tabindex}" {/if}[b]title="{$node->menutext}"[/b]{if $node->target ne ""} 
This is great, but it would be better if the title content could be custom rather than just repeating the menu name. I tried adding the {description} tag into the above, but it repeats the same for every menu entry.

Anyone any ideas?
For Description field use $node->titleattribute

Alby
essexboyracer
Forum Members
Forum Members
Posts: 85
Joined: Wed Jun 20, 2007 5:40 pm

Re: menu manager title tag

Post by essexboyracer »

Thanks Alby, works a charm!
Post Reply

Return to “CMSMS Core”