{foreach from=$topics item='topic'} {capture assign='info_string'} {$topic.title} {/capture} {capture assign='content'} {assign var="sectId" value=$groups[$topic.groupId]->sectionId}