Forums / General / $section_array variable / Comment33982
Kristof Coomans
Monday 21 August 2006 2:51:36 am
Hi OOzy
It's an array of eZSection objects. You should use their id attribute for your option values, just like the old template code did.
<select name="SearchSectionID"> <option value="-1">{"Any section"|i18n("design/standard/content/search")}</option> {foreach $section_array as $srSection} <option {switch name=sw match=$search_section_id}{case match=$srSection.id} selected="selected" {/case} {/switch} value="{$srSection.id}">{$srSection.name|wash}</option> {/foreach} </select>
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org