17488 Posts in 4473 Topics by 1978 members
| Go to End | ||
| Author | Topic: | 3202 Views |
-
Re: Different templates for different pages.

31 October 2008 at 11:41pm
Just using $URLSegment returns the name of the page you're currently on. In need the name of the section each page belongs to, the Level1 page names.
I'll see if the code from NathanB works later today, i'll report back here if it's the right solution.
Thanks for the help everyone!
-
Re: Different templates for different pages.

1 November 2008 at 2:07am
NathanB, your solution works! Thanks alot!
Now i've only got to implement two classes in my css file, one with a static jpg background for the homepage and random images for the other pages
Implemented as followed:
<div id="plaatje" class="<% control Level(1) %>$URLSegment<% end_control %>">
This returns the name of the top level section for every subitem as well. This way i can link in my css file for id=home to a static jpg and for the rest of the pages use a random image generator.
| 3202 Views | ||
| Go to Top |

