You could pass it in as a template variable although you would then need to use perch_content_custom to display the template. We'd need info as to what you are trying to do to help further.
I'm creating a gallery region for the user to upload images. What I'm trying to do is use the page title of the page as a fallback for the "alt". For instance:
We put most of the html in templates/pages/ templates and page titles usually in templates/layout/global.header.php as
Can we use it in a content html template?
You could pass it in as a template variable although you would then need to use
perch_content_custom
to display the template. We'd need info as to what you are trying to do to help further.I'm creating a gallery region for the user to upload images. What I'm trying to do is use the page title of the page as a fallback for the "alt". For instance:
So yes, the best approach is to pass it into the template from the page.