LISE - Implode doesn't work?
Posted: Tue Feb 25, 2020 10:51 am
Hi,
I've made an instance with LISE, which contains several field definitions, and one of them is a checkbox group called 'distance', with the following options;
Question one; if I edit the field definition, there is also a field called 'template' where at default the following line is being displayed; , but changing it doesn't effect a thing. Also putting another value at the 'seperator' field doesn't seem to do anything?
Queston two, the main question; how do I manage to get rid of the comma's seperating the array? I'm calling the field in a Core::Page template with; but nothing returns. If I remove the implode-part, it's getting displayed with the comma-seperation.
I've made an instance with LISE, which contains several field definitions, and one of them is a checkbox group called 'distance', with the following options;
Code: Select all
2KM= <button class="btn btn-distance km2">2km</button>
4KM= <button class="btn btn-distance km4">4km</button>
8KM= <button class="btn btn-distance km8">8km</button>
Code: Select all
{$fielddef.name}: {$fielddef.value|implode:','}
Queston two, the main question; how do I manage to get rid of the comma's seperating the array? I'm calling the field in a Core::Page template with;
Code: Select all
{$item->distance|implode:''}