• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Page nodes and template conditionals

Lee

Well-known member
#1
I'll try and make this simple, but i'm not the most articulate of people.

I want to take the url portion of a page node and apply a conditional to it in the main page_container.

IE, if I am on page_1 or page_2 then display some html.

I need to be able to define multiple pages in the same conditional if possible, maybe up to 5 or 6. Is this possible?
 

Lee

Well-known member
#3
Cheers, Brogan! Big help.

I'm loving how flexible this system actually is - especially as it looks so basic.
 

Lee

Well-known member
#4
Right, I have another conditional question.

I want to add a block of content to the page_container template, but I only want it to display on the forum index. Is this possible with conditionals?
 

Lawrence

Well-known member
#5
Right, I have another conditional question.

I want to add a block of content to the page_container template, but I only want it to display on the forum index. Is this possible with conditionals?
Code:
<xen:if is="{$contentTemplate} == 'forum_list'">
The above is what I use for displaying data on the forum index page only.