[résolu]Boucle sur champ à valeurs multiples

More
10 years 11 months ago #36497 by webscom
Bonjour,

Je me permets de répondre...

C'est étrange puisque ta structure semble tout à fait correct

Est-ce que tu as fais un essai simplement comme ceci ?
Code:
<?php foreach ($this->item->positions['sessions'] as $field) : ?> <?php echo $field->label; ?><br /> <?php echo $field->display; ?> <?php endforeach; ?>

Personnellement j'ai cette structure sur mon site dans mon template et cela fonctionne parfaitement , sous entendu que la boucle 'foreach' m'affiche bien l'ensemble de mes contenus.

Ensuite si tu n'affiches que la dernière peut être qu'il faut intégrer cela dans une tableau (array).

J'espère que tu trouveras ;)

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #36504 by V@lentine
Merci webcom tu m'as permis d'avancer (je présente le site demain matin !!)

En fait ce que j'ignorais c'était que les valeurs étaient stockées dans un seul champ.
Donc en affichant le champ sans faire d'explode j'ai bien tout :
13514|les 23, 24 et 31 mai 2013|Mulhouse | 14514|les 15, 22 et 23 mai 2014|Mulhouse

Donc maintenant je sais quoi faire lol !!
Merci mille fois :)

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #36532 by ggppdk
Hello,
i must say that reading translations of forum threads is cubersome for me


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #36537 by V@lentine
Sure but you are of great help too :)

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #36552 by micker
penses à passer ton post en résolu
merci

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.301 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline