21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 882 Views |
-
Page class conditional in template include

6 August 2010 at 7:22am
In my template Includes folder, I have a file named "Header.ss"
It is included like this:
<% include Header %>
I want to put a line in Header.ss that ONLY is displayed on pages with the page class of Foobar.
This does NOT work:
<% if Foobar %><h1>The Page Type is Foobar</h1><% end_if %>
-
Re: Page class conditional in template include

6 August 2010 at 8:06am
How about...
<% if ClassName = Foobar %><h1>The Page Type is Foobar</h1><% end_if %>
... i think you need to use the db field in your if statement.
Barry
| 882 Views | ||
|
Page:
1
|
Go to Top |


