Author Topic

Kristof Coomans

Monday 21 August 2006 2:51:36 am

Comment33982

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