XF 2.1 Create an array from a list in templates.

mjda

Well-known member
As the title says, I need to create an array from a list within a template and I'm not sure how to do it, or if it's even possible.

Here's what I have:

Code:
in_array({$template}, {$xf.options.adsDisallowedTemplates})

I know the list of disallowed templates is working. I dumped it to myself in the template. But, is there a way to make that list an array to check against $template?
 
Back
Top Bottom