Maybe I'm overlooking something but how can I get the text of a selected checkbox option in a checkbox group to show up in the template?
I'm using multiple checkbox groups where some checkboxes have the same text so I need to enter unique values to be able to differentiate.
ex:
Checkbox group 1
Search=SearchGroup1
...
Checbox group 2
Search=SearchGroup2
...
Code below would return the values SearchGroup1 & SearchGroup2
Code: Select all
{foreach from=$fielddef->values item='value'}
{$value}
{/foreach}
Some extracts from the module with debugging turned on:
- The checkbox options list does still show both text and value:
Code: Select all
[options] => Support=OthSup
Families=OthFam
Code: Select all
[values] => Array
(
[0] => OthSup
)
ps: I'm working in the "Search Template" to generate the filter buttons.
Greetings,
Manuel