[SOLVED] Section Title - How would you do this?

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
SusanN
Forum Members
Forum Members
Posts: 192
Joined: Wed Jun 13, 2007 5:57 pm

[SOLVED] Section Title - How would you do this?

Post by SusanN »

I know that's a horrible thread title, but I don't know what else to call it.  :)

I'm working on my redesign and I need some help. 

Do you see where I've written "Section Title" above the navigation in the right sidebar?  Do you know if there's a way that I can display the section title there dynamically?  For example, on the page I linked above, I'd like it to say Portfolio there.  And when you're on any of those sub pages, I want it to still say Portfolio.  Then when you're in say, the Services section, it should say Services there and on any of the Services sub pages.

I'll appreciate any ideas.  Thanks!  :)
Last edited by SusanN on Tue Nov 04, 2008 5:16 pm, edited 1 time in total.
virtualgadjo
New Member
New Member
Posts: 7
Joined: Sat Nov 01, 2008 10:48 am

Re: Section Title - How would you do this?

Post by virtualgadjo »

hi,

you could do that quite easily using this tag by calguy1000...
http://wiki.cmsmadesimple.org/index.php ... .27s_alias


have swing
User avatar
SusanN
Forum Members
Forum Members
Posts: 192
Joined: Wed Jun 13, 2007 5:57 pm

Re: Section Title - How would you do this?

Post by SusanN »

Thanks so much!  That works just great.  I do have one more question on this.  Do you know if there's a way to have it be capitalized even though the page alias is not?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Section Title - How would you do this?

Post by Nullig »

If you're using the example from the wiki, it would be:

{get_root_page_alias assign="root_page_alias"} The root parent of this page is:{$root_page_alias|capitalize}

The "|capitalize" modifier can be used with any variable call.

Nullig
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am

Re: Section Title - How would you do this?

Post by Ziggywigged »

or with css:
text-transform:uppercase;
Take a penny, leave a penny.
User avatar
SusanN
Forum Members
Forum Members
Posts: 192
Joined: Wed Jun 13, 2007 5:57 pm

Re: Section Title - How would you do this?

Post by SusanN »

Thanks so much!!  It's perfect!  :)

text-transform: uppercase wouldn't work in this situation because I don't want every letter capitalized...just the first one.

Thanks again!
virtualgadjo
New Member
New Member
Posts: 7
Joined: Sat Nov 01, 2008 10:48 am

Re: [SOLVED] Section Title - How would you do this?

Post by virtualgadjo »

hi,

you could also have done this adding
$result = ucfirst($result);
to the tag code :)

have swing
Post Reply

Return to “CMSMS Core”