Hi, I'm running CMSMS 1.10.2, php 5, mySQL 5
I'm in the process of converting a static site to CMSMS.
All the static pages have a body tag like this </__body class=home> which then leads to a background image that varies according to BODY.home #headerimage { with the .home varying according to the page and setting a different header BG image.
If I'm using a modified CMSMS template, can anyone suggest how to modify the style to do the same job without having to create 14 different templates that are otherwise the same?
Many thanks in advance.
[SOLVED ]Stylesheet Issue
-
- Forum Members
- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
[SOLVED ]Stylesheet Issue
Last edited by CapereSpiritum on Mon Feb 06, 2012 2:31 pm, edited 1 time in total.
Re: Stylesheet Issue
You can have:
</__body class="{$page_alias}">
This way all the pages have page alias printed which is unique. Just check that alias is for that page is what you want.
</__body class="{$page_alias}">
This way all the pages have page alias printed which is unique. Just check that alias is for that page is what you want.
-
- Forum Members
- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
Re: Stylesheet Issue
Hi KO
That was quick... Brilliant.
Just to re-cap, let's assume the page is about Bass and the alias is 'bass', change the body tag as above and then the style to be BODY.bass #headerimage {
Seems pretty clear, just double checking
Many thanks...
That was quick... Brilliant.
Just to re-cap, let's assume the page is about Bass and the alias is 'bass', change the body tag as above and then the style to be BODY.bass #headerimage {
Seems pretty clear, just double checking

Many thanks...
Re: Stylesheet Issue
Correct ... or just simply .bass #headerimage {
-
- Forum Members
- Posts: 223
- Joined: Wed Dec 28, 2011 12:11 pm
Re: Stylesheet Issue
Fantastic, many thanks.
Easy when you know how...
Cheers...
Easy when you know how...

Cheers...
Re: Stylesheet Issue
So this one is solved?
Would you be so kind to add [solved] in front of the title of the first post, as per http://forum.cmsmadesimple.org/viewtopic.php?f=3&t=8692
Would you be so kind to add [solved] in front of the title of the first post, as per http://forum.cmsmadesimple.org/viewtopic.php?f=3&t=8692
Make your community a better place!