Forum
page title tag question
I've used the code below to add content to page using a template. I need to drag content from this template (eg the title of the page) into the <title> tag of my page, is this possible?
<?php
perch_content_custom('Vacancy Content', array(
'page' => '/vacancies/index.php',
'template' => 'vacancy_content.html',
'filter' => 'slug',
'match' => 'eq',
'value' => perch_get('s'),
'count' => 1,
));
?>
Sure. Create a template with just your title tag, and then set that new template using the
template
option.