Having control over different page styles
Permalink
I was asked if a bar could be put across the index page as a background but only on the index page.
The bar was simple enough, just use a css background image to the body with a repeat x.
The fun was keeping it on only one page.
The solution...
Hope some might find this useful.
The bar was simple enough, just use a css background image to the body with a repeat x.
The fun was keeping it on only one page.
The solution...
Hope some might find this useful.
I realize that index.php is every page on the site but it is appended with other pages and the append, or lack of it, is what the code looks for. So if your url reads "index.php/about", for example, the code would spit out "about".
I did not know about the method you describe and I do like having more than one way to go about anything.
Thank you.
I did not know about the method you describe and I do like having more than one way to go about anything.
Thank you.
You can use the concrete5 API to ask if the page is the homepage
Also could have a custom page type for the pages that need a different style.