Neuro
Member
I'm passing a few different variables into my template:
I'd like to create a new $threads variable and set $threads == $catalogthreads, spit out the threads, then set $threads == $transthreads, something like:
Is there a way to do this?
Code:
$viewParams = array('catalogthreads' => $catalogthreads,
'transthreads' => $transthreads);
I'd like to create a new $threads variable and set $threads == $catalogthreads, spit out the threads, then set $threads == $transthreads, something like:
Code:
<div class="discussionList section sectionMain">
<xen:set var="$threads">{xen:raw $catalogthreads}</xen:set>
<xen:foreach loop="$threads" value="$thread">
<xen:include template="thread_list" />
</xen:foreach>
<xen:set var="$threads">{xen:raw $transthreads}</xen:set>
<xen:foreach loop="$threads" value="$thread">
<xen:include template="thread_list" />
</xen:foreach>
</div>
Is there a way to do this?