Forum
Access Perch Template Var inside App
Hello,
I'm trying to create a Shortcode App that will display a button
But the button needs different actions depending on a Page Attribute
On page templates I use
$enquiry_form_embed = perch_page_attribute('enquiry_form_embed', array(
'template' => 'body_attributes.html'
),true);
And works perfect
But how do i access the same data in an APP
Thanks
You don't have any access to the page when parsing a shortcode. The parsing doesn't happen in the context of a page.