We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Adding/overriding template attributes with template includes
I'm not sure whether this will be a feature request or just something I can't get to work and is already there… I'd like to pass extra attributes into a template include via the
perch:template tag. The current use case would be to pass a
suppress="true" in a utility introductory paragraph template. So the template would look like
<perch:content id="intro" type="textarea" label="Introduction" size="xs" required="true" count="chars" help="Keep the character count under 200" />
and it would be included something like:
<perch:template path="content/introduction.html" suppress="true" />
So it would be editable in the control panel but not output to the page.
Overriding template attributes would be cool too, so if I added a new
help="" attribute to the include it would replace the help text in the template.
Is this currently possible?
Want to reply to this thread?Login with Perch