Display Text based upon Current page
Posted: Mon Nov 24, 2008 10:06 pm
On a new site I have a background image as the header for my inside pages, with a slogan and page title in floating divs over the image.
I am looking for a specific way to determine the level one page and then dictate the slogan and page title.
Example:

This is currently hard-coded: http://69.13.130.134/index.php?page=about-us where the level 1 nav is About Us, the slogan is Watching puppies get born never gets old.
The background image is http://69.13.130.134/uploads/images/banner_bg.png
The current code is:
/* Where background image is banner_bg.png) */
About Us /* would like this to be dynamic */
Watching puppies get born never gets old. /* would like this to be dynamic */
Now, on page http://69.13.130.134/index.php?page=class-schedule - the level one nav is ADMISSIONS, the current page is class-schedule. I would like the header to read Admissions and the Slogan to be "Blah Blah Blah".
I could do this with a separate CSS for each page, or by putting an individual snippet on each page, but that would be difficult for the end-user client to continue in the future as they have very limited skills.
I am a noob with Smarty so I would appreciate a clean solution, not simply a reference to a .
Thoughts?
Thanks.
360true
I am looking for a specific way to determine the level one page and then dictate the slogan and page title.
Example:

This is currently hard-coded: http://69.13.130.134/index.php?page=about-us where the level 1 nav is About Us, the slogan is Watching puppies get born never gets old.
The background image is http://69.13.130.134/uploads/images/banner_bg.png
The current code is:
/* Where background image is banner_bg.png) */
About Us /* would like this to be dynamic */
Watching puppies get born never gets old. /* would like this to be dynamic */
Now, on page http://69.13.130.134/index.php?page=class-schedule - the level one nav is ADMISSIONS, the current page is class-schedule. I would like the header to read Admissions and the Slogan to be "Blah Blah Blah".
I could do this with a separate CSS for each page, or by putting an individual snippet on each page, but that would be difficult for the end-user client to continue in the future as they have very limited skills.
I am a noob with Smarty so I would appreciate a clean solution, not simply a reference to a .
Thoughts?
Thanks.
360true