Hi,
i have took over a companydirectory and rebuild it to lise.
There are some fields defined as multiselect (german "Mehrfachauswahl" ) i need to get these values in a new template.
I have found how to do that with categories, that is working.
However i cannot find how to do this with a multiselect-field, searched the forum and the internet but i did not find it.
The field has two values, like "javaprogrammer" and "perl-programmer" and one can select one or both.
If it is complex to get the values, i will make a common select-field and offer the three possibilities.
Regards,
Jan
get values from a multiselect field
Re: get values from a multiselect field
Do you mean to display the selected values in a detail template?
If you have a multi-select field in LISE, the selected values will be displayed as javaprogrammer,perl-programmer when you call your multi-select field: {$item->fieldalias}.
If there should be space between the values in the output, you can do {$item->fieldalias|replace:",":", "}
If you have a multi-select field in LISE, the selected values will be displayed as javaprogrammer,perl-programmer when you call your multi-select field: {$item->fieldalias}.
If there should be space between the values in the output, you can do {$item->fieldalias|replace:",":", "}
Re: get values from a multiselect field
Thanks webform,
i have thought too complex!
Forgot to first try the obvious . . . . !
When you ask KI it even gets more complicated.
Regards,
Jan
i have thought too complex!
Forgot to first try the obvious . . . . !
When you ask KI it even gets more complicated.
Regards,
Jan