In the following thread:
https://docs.grabaperch.com/te…variables-into-templates/
I am wondering whether it is possible to use Perch Variables, with, e.g. perch:pages rather than perch:content
If not, would this be a possible v4 feature?
In the following thread:
https://docs.grabaperch.com/te…variables-into-templates/
I am wondering whether it is possible to use Perch Variables, with, e.g. perch:pages rather than perch:content
If not, would this be a possible v4 feature?
Have you tried it? NB You can also use perch_page_attributes_extend() to change/add variables on a per page basis.
I am wondering whether it is possible to use Perch Variables, with, e.g. perch:pages rather than perch:content
You can use set_var() (or the more up to date data option) to send variables to any templated content. It's a feature of the template engine.
Hi Drew,
I have managed to make it work, and I am happy to post some code but I am curious about this data option or is that a V4 only feature?
Cheers and thanks for continuing work on Perch CMS.
It's always been in Perch 3 as far as I recall, but it's only mentioned in the variable docs, not the function pages, and that's why it's probably not as well known.