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
Input field in template which captures page name list detail page name
I'm using a list and detail page setup with a form on the detail page. I'm using the forms app for the forms on these detail pages.
Whenever a form is submitted I would like to be able to show which detail page the form has come from.
At the moment I am just showing the page slug.
On the detail layout I have the following code which is used to get the page slug.
<?php PerchSystem::set_var('page', $_SERVER['SCRIPT_NAME']); perch_content_custom('Form', array( 'template' => 'enquiry_form.html', )); ?>
Below is my enquiry form template and the hidden input field is the one which gives the page slug
<perch:input type="hidden" label="Artist Name and Work" id="page" value="<perch:content id="page" escape="true" />" />
Would you know how I would go about getting the page title and then the name of the detail page i.e (Main page tile) "Product" (detail page title) "Product 1"
Thanks for any help with this.
Want to reply to this thread?Login with Perch