I have a template which uses a php include file $content to display the main contents of the page. I want to have the page title change depending on the content. I can declare $pagetitle in the included $content php file but the problem is that in the layout the content is loaded after the pagetitle.I have a template which uses a php include file