Page 1 of 1

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

Posted: Tue Nov 04, 2008 2:41 pm
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!  :)

Re: Section Title - How would you do this?

Posted: Tue Nov 04, 2008 3:42 pm
by virtualgadjo
hi,

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


have swing

Re: Section Title - How would you do this?

Posted: Tue Nov 04, 2008 4:37 pm
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?

Re: Section Title - How would you do this?

Posted: Tue Nov 04, 2008 5:10 pm
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

Re: Section Title - How would you do this?

Posted: Tue Nov 04, 2008 5:14 pm
by Ziggywigged
or with css:
text-transform:uppercase;

Re: Section Title - How would you do this?

Posted: Tue Nov 04, 2008 5:16 pm
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!

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

Posted: Tue Nov 04, 2008 5:35 pm
by virtualgadjo
hi,

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

have swing