Title is a bit crappy... basically consider the thread_list_threads hook.
That sits in the thread_list template:
And within that hook is a foreach loop where the $threads param and therefore individual $thread params are available.
If I inject a template somewhere within the foreach loop that contains this code:
I would expect each thread_list_item to now contain the $thread record for each list item.... Nope.... Unfortunately each thread_list_item now contains "NULL".
However, if I inject a template that contains this code:
Each thread item now has a dump of all threads.
Aside from the TMS - is there anything else that can be done to achieve what I want?
That sits in the thread_list template:
Code:
<xen:hook name="thread_list_threads">
<xen:foreach loop="$threads" value="$thread">
<xen:include template="thread_list_item" />
</xen:foreach>
</xen:hook>
And within that hook is a foreach loop where the $threads param and therefore individual $thread params are available.
If I inject a template somewhere within the foreach loop that contains this code:
Code:
{xen:helper dump, $thread}
I would expect each thread_list_item to now contain the $thread record for each list item.... Nope.... Unfortunately each thread_list_item now contains "NULL".
However, if I inject a template that contains this code:
Code:
{xen:helper dump, $threads}
Each thread item now has a dump of all threads.
Aside from the TMS - is there anything else that can be done to achieve what I want?