Subtitles in menu

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

Subtitles in menu

Post by lchestnut »

Is there a way to add subtitles to the menu? I am moving my site from Joomla to CMSMS. My current site is http://peppersville.com with subtitles but I cant find how to recreate it.

Thanks

Lisa
fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am

Re: Subtitles in menu

Post by fredp »

Hi,

One way would be to put the menu subtitle content into one of the "extra" page attributes (e.g. Extra Page Attribute 1) for each page that has a subtitle. You have access to these attributes in menu templates when you set the loadprops menu module parameter to true {menu loadprops=1...} . So, you could try something like this in your menu template...

Code: Select all

<span class="subtitle">{$node->extra1}</span>
Of course, setting loadprops=1 does more db queries to load the page properties. You'll have to determine if this meets your performance requirements.

I'm sure there are other ways.

Hope this helps,
Fred P.
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
lchestnut
Forum Members
Forum Members
Posts: 20
Joined: Fri Dec 23, 2011 5:00 am

Re: Subtitles in menu

Post by lchestnut »

I will try that.

Thanks
Post Reply

Return to “Layout and Design (CSS & HTML)”