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
using page attributes as template include in perch_collection not working
I'm trying to output page attributes (meta info in the head) for a runway collection item using a template include i.e.:
perch_collection('Walks', [ 'template' => 'collections/_meta.html', 'filter'=> 'slug', 'match' => 'eq', 'value' => perch_get('walkSlug'), 'count' => 1, ]);
<perch:template path="pages/attributes/default.html" rescope="parent" />
The template markup is output but without any data / variables (<perch:pages id="description">, etc are empty).
If I copy & paste the contents of default.html into _meta.html and replace all perch:pages tags with perch:content tags the data variables are output fine, so there is a solution but it makes sense to be able to rescope & reuse these page attributes templates... Should this be possible?
Want to reply to this thread?Login with Perch