Use $visitor.language_id.There are some conditional to hide / show some elements depends of the language selected?
I have no idea what you're trying to do.I'd like to show a completely node depending of my conditional. That's possible?
So i can use more then one conditional? Under eachother?Add an additional condition for the user group into the if statement, or, if it makes it easier, wrap the whole lot in a new conditional statement.
I have 3 categories and each category contain a forum with a specific language.I have no idea what you're trying to do.
<xen:hook name="dark_taigachat_full" params="{xen:array 'room=2'}" />
<xen:hook name="dark_taigachat_alt" />
<xen:if is="{$contentTemplate} == '_page_node.6'">
<xen:hook name="dark_taigachat_full" params="{xen:array 'room=2'}" />
<xen:else/>
<xen:hook name="dark_taigachat_alt" />
</xen:if>
Solved.Whats the conditional to check for user if it's on User State = Valid?
<xen:if is="{$visitor.user_id} AND {$visitor.user_state} == 'valid'">
THIS WILL ONLY SHOW FOR VALID REGISTERED USERS
</xen:if>
<xen:if is="{$visitor.language_id} == x">
</xen:if>
<div class="resourceListSidebar">
<div class="secondaryContent categoryList">
<h3>{xen:phrase categories}</h3>
<xen:if is="{$categories}">
<ol>
<xen:foreach loop="$categories" value="$_category">
<li class="{xen:if '{$_category.resource_category_id} == {$selectedCategoryId}', selected}">
<a href="{xen:link resources/categories, $_category}" {xen:if $_category.category_description, 'title="{xen:helper striphtml, $_category.category_description}" class="Tooltip" data-tipclass="resourceCategoryTooltip"'}>{$_category.category_title}</a>
<span class="count">{xen:number $_category.resource_count}</span>
</li>
</xen:foreach>
</ol>
<xen:else />
<div>{xen:phrase n_a}</div>
</xen:if>
</div>
</div>
We use essential cookies to make this site work, and optional cookies to enhance your experience.