How to get a subloop
-
Hi,
I’m trying to retrieve and display the data from the “training_category”, “training_cycle” and “training_type” elements of this json file, but I’m not able to do so.
Here my current code :[jsoncontentimporter url="https://brewingtheory.hop3team.com/formations.json" basenode=trainings] <article> <h2>{name}</h2><br/> {subloop-array:training_category} {training_category.name} {/subloop-array:training_category} <a >Je suis intéressé·e</a> </article> [/jsoncontentimporter]
And the items I want to recover :
{ "trainings": [ { "slug": "immersion-la-brasserie-artisanale-non-eligible-cpf", "id": "f720bf2a-8565-4e6c-b5e4-c93afb2ecbbd", "name": "IMMERSION - La Brasserie Artisanale // non éligible CPF", "reference": "BREWBATH", "training_category": { "id": 6, ->> "name": "Formation sur mesure", "discarded_at": null }, "training_cycle": { "id": 1, ->> "name": "Production", "discarded_at": null }, "training_type": { "id": 1, ->> "name": "Présentiel", "discarded_at": null, "on_site": true }, ...
How can I get the training category name, trainig cycle name and training type name ?
Thanks for your help
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to get a subloop’ is closed to new replies.