How to access to header custom properties with php?

There are numerous ways to store data.

You’re already comfortable with storing data as variables in a page header (BTW also frequently named “frontmatter”) so you could create a page just to store your data. And likely hide it from the menu by setting visibility: false in its frontmatter.

More suggestions are given in Store and read data in grav

I hope this helps.

1 Like