Page 1 of 1

[SOLVED] menu manager title tag

Posted: Thu Nov 15, 2007 2:27 pm
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

Re: menu manager title tag

Posted: Thu Nov 15, 2007 2:36 pm
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

Re: menu manager title tag

Posted: Sat Nov 17, 2007 9:23 am
by essexboyracer
Thanks Alby, works a charm!