Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Storing Flex-Objects at the page level

Started by Mathieu Lecouturier 5 days ago · 3 replies · 126 views
5 days ago

Hi,

I'm trying to understand if and how it would be possible to store Flex-objects collection at the page level.

My objective would be to create a new Flex-object type called "Participant" and then use it through the Admin Next for each page using the template "Workshop".

So in each "Workshop" folder, I could find a folder containing the list of "Participant" and edit the list via a tab in the admin of the page.

Does anyone know how to accomplish such a thing ?

2 days ago

let me ask if i understood right.

you want a special list that can be edited from admin plugin and can be used for workshop template, is that right?

if so that is what i use flex for. create fkex and conect it to template or partial you want to use. do you perheps dont know how to to these?

2 days ago

I have pages using a Workshop template.
Each workshop accept one or more Participants who I wish to create using a custom Flex Object.
And I would like to store the Participants in the folder of the related Workshop.

So, if I browse the Pages folder of my Grav website I would find one folder for each Workshop containing one folder for each Participant.

I understand more or less how to create a Custom Flex Object representing a Participant.
But I don't understand if it is possible to store these objects in different folders depending of the page they are related to.

And I would like to customize the Admin to allow me to manage the list of participants directly from the Workshop page they belong to.

2 days ago

umm, so you want to put right Participant to its page auto, do i understand right? if so... i use page title for something like that. ex: (if page.title equal or in "this" do or use that). in short i try to find something linked between flex and page with using differences between pages. to do that i build pages acording to that kind of use beforehand. you may use frontmatter too.

if i misunderstood im sorry, you may try explaining again which is okay for me or wait someone else.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Slebeig, 4 weeks ago
1 294 4 weeks ago
Plugins · by Rene, 2 months ago
2 452 2 months ago
Plugins · by Xavier, 2 months ago
2 368 2 months ago
Plugins · by Luka Prinčič, 7 years ago
3 1593 2 months ago
Plugins · by Sebastian van de Meer, 3 months ago
1 519 3 months ago