Hello,
ggppdk wrote: Are you reporting a bug ? or other question?
It's not a bug, it's just that I need help with my code.
ggppdk wrote: What is the type of the field?
My field is a text field.
ggppdk wrote: What do you mean by "sessions" ?
For a training course (e.g. Microsoft Access) we can have one or more sessions (e.g. one in February, one in May, one in September...).
Each of these sessions has a reference, dates and takes place somewhere.
As I didn't want to have as many "Access" items as sessions, I use a text field with multiple values, separating the 3 datas like this :
reference|dates|place
e.g; for "Access" I have :
13506|du 2 au 5 février 2013|Mulhouse
13507|du 16 au 19 mai 2013|Mulhouse
13508|les 4, 9 et 10 septembre 2014|Mulhouse
Now I want to display my sessions at the bottom of my content in a table, with a link for each of them to my chronoforms (submission form).
The problem I have is that I only get the first session. Trouble with foreach I suppose, but I'm not quite at ease with the coding for flexi...
It must be here :
Code:
<?php foreach ($this->item->[b]positions['sessions'][/b] as $champ) : ?>
I don't know how to get my field's values...