Tuesday 08 June 2004 7:38:50 am
Hello Paolo! If I understand you correctly, the attribute may contain identical values, is that correct? And you only want to show one of the identical values, right? Then I would write your select like this:
<select class="search" name="t219" id="Search">
<option selected value="">Choose</option>
{let myfolder=47 used_node=false()}
{let myAttributeValues=fetch(content,tree,hash(parent_node_id, $myfolder,class_filter_type, "include",class_filter_array, array(17)))}
{$myAttributeValues|unique} {*This is where you remove the duplicate values*}
{section loop=$myAttributeValues}
<option>{$:item.data_map.myattributeclass.content}</option>
{/section}
{/let}
</select>
I have not tested this, but try to see if it works.
best regards trondåge
trondåge
|