Passing value into title of perch_layout
I'm working with a 2 page list/detail setup. On the detail page, I want to be able to pass the value of the id "name" from my template: <perch:content id="name" type="text" label="Name" size="xl" required="true" title="true" /> into the title of perch_layout.
In the docs, I found this (on how to do this with blog),
<?php $title = perch_blog_post_field(perch_get('s'), 'postTitle', true); perch_layout('global.header', array( 'title'=>$title )); ?>
What would be the syntax to grab the value of a field for a regular perch content region like mine?
Want to reply to this thread?Login with Perch