Page nodes and template conditionals

Lee

Well-known member
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?
 
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?
 
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.
 
  • Like
Reactions: Lee
Top Bottom