<xen:if is="{$forum.node_id} == 2">
code
<xen:else />
code
</xen:if>
Thanks for the help Jake. Are there any conditionals like if this script = index?
Code:<xen:if is="{$forum.node_id} == 2"> code <xen:else /> code </xen:if>
thanks.
and for an array (multiple forums)?
Code:<xen:if is="{$forum.node_id} == 2"> code <xen:else /> code </xen:if>
<xen:if is="{$forum.node_id} == 2,3,4">
Jake is there a way to use an array of nodes with this code?
Like:
<xen:if is="{$forum.node_id} == 2,3,4">
Tried using this code in the forum_list and page_container template with no successCode:<xen:if is="{$forum.node_id} == 2"> code <xen:else /> code </xen:if>
I don't know of any conditional for that. [forum home page]
I've been trying to take the breadcrumbs off the forum home page - this means it's impossible, right? Just so I know to give up.
<!-- top breadcrumb, top ctrl -->
<div class="breadBoxTop">
<xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
</div>
<!-- top breadcrumb, top ctrl -->
<xen:if is="{$contentTemplate} != 'forum_list'">
<div class="breadBoxTop">
<xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if>
<xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include>
</div>
</xen:if>
Admin CP -> Appearance -> Templates -> PAGE_CONTAINER
Code:<!-- top breadcrumb, top ctrl --> <xen:if is="{$contentTemplate} != 'forum_list'"> <div class="breadBoxTop"> <xen:if is="{$topctrl}"><div class="topCtrl">{xen:raw $topctrl}</div></xen:if> <xen:include template="breadcrumb"><xen:set var="$microdata">1</xen:set></xen:include> </div> </xen:if>
... is there any reason I shouldn't be doing this?
An easier way to do that is edit the forum_list template from this <xen:h1>{$xenOptions.boardTitle}</xen:h1> to this <xen:h1></xen:h1>Jake, I also used this to take the title of the board off the front page but leave the thread titles in place, and it seems to be working just fine ... is there any reason I shouldn't be doing this?
We use essential cookies to make this site work, and optional cookies to enhance your experience.