If I place an element and set it to hidden in the panel, var_dump($page); sets the element to isHidden:true. However, unfortunately I have no idea how to set this status in the template. Anybody have an idea or a tip?
Thanks in advance.
Thank you.
I have a column view, above the image below the text.
The image should not be displayed in the frontend, the customer should be able to show and hide the elements he needs.
I think the only way to actually hide complete layouts (as apposed to blocks), is via layout settings (maybe use a toggle field to switch between hidden/show).
You can then query the value of this layout setting via $layout->attrs(): $layout->attrs() | Kirby