@simmons,
We'll have to fall back upon raw PHP for that.
Please try the following to create the string of names -
And the following to use the string created above to create a dropdown
Hope this helps. Do let us know.
Thanks.
We'll have to fall back upon raw PHP for that.
Please try the following to create the string of names -
- Code: Select all
<cms:pages masterpage='gallery.php'>
<cms:php>
global $my_arr, $all_locality, $CTX;
if( !is_array($my_arr) ) $my_arr=array();
$locality = $CTX->get('locality');
if( !in_array($locality, $my_arr) ){
$my_arr[]=$locality;
$all_locality .= '|' . $locality;
}
</cms:php>
</cms:pages>
And the following to use the string created above to create a dropdown
- Code: Select all
<cms:input type="dropdown" name='locality' id='locality' opt_values="Any=- <cms:php>global $all_locality; echo $all_locality; </cms:php>" />
Hope this helps. Do let us know.
Thanks.