Page 1 of 1

Page ID for alternating banner img ?

Posted: Mon Apr 26, 2010 5:19 am
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!

Re: Page ID for alternating banner img ?

Posted: Mon Apr 26, 2010 1:18 pm
by owr_bgld
use {get_template_vars} to see the name of it

Re: Page ID for alternating banner img ?

Posted: Mon Apr 26, 2010 5:32 pm
by Nullig
Use the page alias to name your images, then:



should do the trick.

Nullig

Re: Page ID for alternating banner img ?

Posted: Fri Apr 30, 2010 9:04 pm
by Dr.CSS
@Nullig

It's {$page_alias}  ;)...

Re: Page ID for alternating banner img ?

Posted: Fri Apr 30, 2010 9:39 pm
by Nullig
Absolutely right, Mark.

Thanks for pointing it out.

Nullig