I'm having a problem adding unique content to a navigation/menu item within a Menu Manager template.
What I'm trying to do is add a 2 or 3 word description under the main navigation text for each menu item. For example: 'About' is the main nav text and underneath it says 'About this company'. I want to create a field where the CMS admin can add the phrase 'About this company' to the page and have it appear under the main nav text.
I've tried using one of the 'Extra Page Attributes' but this hasn't worked. It just adds the 'Extra Page Attribute' for the page you are on to every nav item. I'm sure there is a simple way to get this to work, but my PHP knowledge isn't enough to know it!
Can anyone tell me the best way of accomplishing this?
Thanks,
Nick.
[solved] How to add text below main nav item
Re: How to add text below main nav item
You need to make the change in the MenuManager.
If you currently use a menu with extension .tpl, you first need to hit the button: "Import Template to Database".
Now you can edit the template by adding the smarty tag {$node->extra1}
Note that you must add it multiple times, depending on the number of variations a menu-item can be displayed.
If you currently use a menu with extension .tpl, you first need to hit the button: "Import Template to Database".
Now you can edit the template by adding the smarty tag {$node->extra1}
Note that you must add it multiple times, depending on the number of variations a menu-item can be displayed.
Re: How to add text below main nav item
Thanks Jos, much appreciated. That did the trick!
I almost had it, but the 'extra1' syntax is what got it working for me (didn't know how to pull the 'Extra Page Attribute' field into the template.)
Regards,
Nick.
I almost had it, but the 'extra1' syntax is what got it working for me (didn't know how to pull the 'Extra Page Attribute' field into the template.)
Regards,
Nick.



