Page ID for alternating banner img ?

General project discussion. NOT for help questions.
Post Reply
krayzee
Forum Members
Forum Members
Posts: 10
Joined: Wed Apr 21, 2010 7:23 pm

Page ID for alternating banner img ?

Post by krayzee »

Hi everyone...
I'm working on following webpage: http://www.dr-dent-gross.de/dev

For each page I want the banner image to change accordingly. Is there an easy way to do this through CMSms?
As of now I have the image defined through CSS as background img.

I was thinking maybe of a little bit of java script in the template, calling an img src according to the page id. But is the page id, or anything similar, defined in cmsms and where can I find it?

Thanks for any help!
owr_bgld

Re: Page ID for alternating banner img ?

Post by owr_bgld »

use {get_template_vars} to see the name of it
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Page ID for alternating banner img ?

Post by Nullig »

Use the page alias to name your images, then:



should do the trick.

Nullig
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Page ID for alternating banner img ?

Post by Dr.CSS »

@Nullig

It's {$page_alias}  ;)...
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Page ID for alternating banner img ?

Post by Nullig »

Absolutely right, Mark.

Thanks for pointing it out.

Nullig
Post Reply

Return to “General Discussion”