i figured it out it accepts valuablesYou would have to ask the add-on author - I believe it uses different syntax.
It does.I always thought that by adding ! i would achieve the opposite
<xen:if is="{$contentTemplate} != 'xyz">
You must use this add onPerhaps I missed it, but how do I target a mobile user with an if statement?
Like... <xen:if is="user is on mobile" and forum.id="2222">
blah
</xen:if>
<xen:if is="{$thread.thread_id}">
....
</xen:if>
<xen:if is="{$contentTemplate} == 'thread_view'">
This content will show on the thread_view template
</xen:if>
This is a block that I use to show a 'banner' specific to a thread of mine.which conditional would be best to show content only on threads themselves ?
would it just be ?
orCode:<xen:if is="{$thread.thread_id}"> .... </xen:if>
I want to add a link header to Page container template which only shows up on threads pagesCode:<xen:if is="{$contentTemplate} == 'thread_view'"> This content will show on the thread_view template </xen:if>
<xen:h1>
<xen:if is="{$thread.thread_id} == 82">
<a href="{xen:link threads, $thread}"><img src="@imagePath/uix_dark/guns.png" alt="{$thread.title}" /></a>
<xen:else />
{xen:helper threadPrefix, $thread}{$thread.title}
</xen:if>
</xen:h1>
Sorry in advance, I'm sure I am missing something simple @Brogan.Brogan updated Conditional Statements with a new update entry:
Making the category ID available for use in the ad_ templates
Read the rest of this update entry...
<xen:if is="{$category.node_id} != 178 AND {$category.node_id} != 179">
Sorry in advance, I'm sure I am missing something simple @Brogan.
I have the create pages for categories selected, and I added the line to the top of the category_view template. I am trying to use this conditional to exclude two categories from an ad_template but no luck.
Code:<xen:if is="{$category.node_id} != 178 AND {$category.node_id} != 179">
Changed toTry using an array instead: https://xenforo.com/community/threads/conditional-statements.47199/page-3#post-646719
<xen:if is="!in_array({$category.node_id}, array(178, 179))">
We use essential cookies to make this site work, and optional cookies to enhance your experience.