nrep
Well-known member
I'm continuing to learn how XenForo works and my template modification is coming together, however I'm confused as to why this doesn't work:
$xenOptions.articleforumids is set to "1,2,3" as a string on the options page.
I've tried changing the "articleforumids" data type to an array rather than string, but I get an error about allowing single selections and sub-options. However, surely as I'm using array{xen:raw} then I can just use a string anyway?
Code:
<xen:if is="in_array({$forum.node_id}, array({xen:raw $xenOptions.articleforumids}))">
$xenOptions.articleforumids is set to "1,2,3" as a string on the options page.
I've tried changing the "articleforumids" data type to an array rather than string, but I get an error about allowing single selections and sub-options. However, surely as I'm using array{xen:raw} then I can just use a string anyway?