and then I access it in the php something like:
$page->columns()->first()
to get only the values from the fields inside this column from the blueprint?
obviously this is not working as I showed above but I was wondering if this is somehow possible.
Hi @texnixe, sorry for bothering again. But I ran into an issue with the blueprint object. It started out all fine, but then I noticed that when I am logged out of Kirby it doesn’t show my content and my arrays are empty.
It does show me the blueprint fields, but the data array is empty. As soon as I log in, my content is back. All of them are public/listed. Is there some access issue or something that I am overseeing?
Well, I don’t know if this makes any sense what I am doing here
But what I want to achieve is that I have this two column layout and I show my pages form the sections like modular components. I guess I could also filter the data through the naming c-aside…
But anyways… when I dump for example dump($sidebar) when I am logged out, then its an empty array. when I am logged in it works.
Ok, seems like the data does indeed need authentication.
Question: Why do you need to access the blueprint data to achieve what you are trying to achieve? You might as well filter your pages by their templates (if I haven’t missed anything)?