Forum
Reuse region to Perch Comment App
Is it possible to reuse a region to comment page? I would like to have it automatically appear, for ex: itemprop for product tittle
<perch:content id="SubpageH1Title" type="text" label="Main H1 Title" required="true" title="true" />
Yes, you can use
perch_content_custom()
to redisplay a region from a different page.But how can you do that in comment app?
Output the result to a variable (setting the 3rd argument in
perch_content_custom()
totrue
) and then pass that into the comment template.Can you give me an example ? thanks
Let's say, In the same page I want my H1 heading to be displayed in the comment as the product/service name <h3 itemprop="itemreviewed">repeat the H1 title here </h3>
Got it.
Main template:
Comment template