Jaxel
Well-known member
I am trying to do this:
However, I am getting this error:
Is there a way to do this in a template?
Code:
<xf:option name="article_promote" value="1"
selected="{{ in_array($thread->node_id, $xf.options()->EWRporta_article_forums) }}"
label="{{ phrase('EWRporta_promote_to_article') }}"
hint="{{ phrase('EWRporta_promote_to_article_hint') }}">
However, I am getting this error:
The function options may not be called in a template. Only functions with whitelisted prefixes are allowed.
Is there a way to do this in a template?