Forums / Developer / select
Didier Kalulambi
Wednesday 03 November 2010 2:45:02 am
I'll retrieve attribute of a parent class of a selected articlein a select list. here is my code for my fetch:
{def $bsps_tts = fetch( 'content','list', hash( 'parent_node_id', 100, 'class_filter_type', 'include', 'class_filter_array', array( 'bsp' ), 'depth', 2, 'limit', 10 ) )}{def $bsps_tts = fetch( 'content','list', hash( 'parent_node_id', 100, 'class_filter_type', 'include', 'class_filter_array', array( 'bsp' ), 'depth', 2, 'limit', 10 ) )}
<select name="choise_product" > {foreach $bsps_tts as $bsps_tt}<option value="{$bsps_tt.name}">{$bsps_tt.name}</option>{/foreach} </select>
please help me