Arno Nühm
Active member
I would like to show some text everywhere but not in some specific threads.
To have it work e.g. in PAGE_CONTAINER template, I use this code:
and this code in thread_view template:
Works perfect.
BUT I would like to use it in many different templates. So I would need to update the list of thread IDs in the array in many places if there is a change.
Is it possible to only have ONE place with all the thread IDs and still be able to use them as conditional?
Could I use some kind of "$variable = 1,2,3,4" somewhere and use something like <xen:if is="!in_array({$threadId}, array($variable))"> in all the templates?
Sorry for my bad English. Hard to describe what I would like to have.
To have it work e.g. in PAGE_CONTAINER template, I use this code:
Code:
<xen:if is="!in_array({$threadId}, array(1,2,3,4))">
TEXT
</xen:if>
and this code in thread_view template:
Code:
<xen:container var="$threadId">{$thread.thread_id}</xen:container>
Works perfect.
BUT I would like to use it in many different templates. So I would need to update the list of thread IDs in the array in many places if there is a change.
Is it possible to only have ONE place with all the thread IDs and still be able to use them as conditional?
Could I use some kind of "$variable = 1,2,3,4" somewhere and use something like <xen:if is="!in_array({$threadId}, array($variable))"> in all the templates?
Sorry for my bad English. Hard to describe what I would like to have.
Last edited: