Page 1 of 1

every page a different background

Posted: Fri Feb 19, 2010 1:04 pm
by bullitshot
Hello!

I am working with CMSMS 1.6.6. I have my site quite ready but what I want is that every page has a different background.

I've been trying to do it with an IF statement but I can't work it out.

Can somebody help me?

Thanx!

Re: every page a different background

Posted: Fri Feb 19, 2010 1:25 pm
by RonnyK
Use something like....

http://forum.cmsmadesimple.org/index.ph ... l#msg91566

You will see that there is a $page_alias for the alias of the current-page. You can use that to select an image with that same name.

Ronny

Re: every page a different background

Posted: Fri Feb 26, 2010 5:44 pm
by bullitshot
I tried to get it work a couple times last week but I can not seem to get it to work.

Can you / or somebody else help me more with this?

Thanx!

Re: every page a different background

Posted: Sat Feb 27, 2010 12:13 pm
by bullitshot
Hello!

Still can not figger it out.

Spend quite some time on it but no result.

Anyone wants to help? I'll be willing to pay for it.

Thanx!

Re: every page a different background

Posted: Sat Feb 27, 2010 2:19 pm
by bullitshot
It's all solved.. was quite simple.. the first tip with the capture tag threw my off and thinking too difficult

The answer is:



you set the name of the page equal to the name of the image header_news is page news

thats all