I have some modifications I'm trying to apply using a template. By looking at another add-on I dissected, the following works as expected in that add-on:
<xf:if is="in_array({$forum.node_id}, $xf.options.includeTheseNodes)">
However, it is not working for me, as I'm getting this error:
I'm attempting to do this in
I also cannot create two different
The code above works in the other add-on I looked at, still in the thread_list_macros template, but it is not within an extension.
<xf:if is="in_array({$forum.node_id}, $xf.options.includeTheseNodes)">
However, it is not working for me, as I'm getting this error:
Extension public:thread_list_macros :: meta_cell() error: Cannot access offset of type string on stringI'm attempting to do this in
thread_list_macros but inside the meta_cell extension. Now I'm thinking that using this conditional inside an extension (like meta_cell) is not permitted...? I also cannot create two different
meta_cell extensions (or any others), as it throws an error saying that meta_cell is already defined (and would do the same for other extensions). So, I can't do this either:
Code:
<xf:if is="my conditionals">
<xf:extension id="meta_cell">
my new extension stuff here
</xf:extension>
<xf:else />
<xf:extension id="meta_cell">
original extension code here
</xf:extension>
</xf:if>
The code above works in the other add-on I looked at, still in the thread_list_macros template, but it is not within an extension.
