Naming each php file in the title tag section
Posted: Sat Mar 21, 2009 2:05 pm
I'm probably not using the correct language but I will attempt to explain my problem.
We have not been able to figure out how to name each php file on our website in the title section so that when the page comes up it uses a different title than what is on the master template.
I don't understand php files very well and our web-design guy has not done any research to fix this problem.
Could someone look at one of our php files and see what we need to do.
Below is a sample of the section on the php file that I believe you need to look at. If not let me know what I need to show.
Thanks for the help,
Karey
//initialize an object of the class
$template=new patTemplate();
//set name of template file
$template->readTemplatesFromFile("templates/white_tmpl.html");
// set values for template variables
$template->addVar("master", "CENTER CONTENT", $content);
// set other variable values
$title=' - Feature page for “How the Right Brain Learns“';
$keyword='';
// replace placeholders with actual variable values
$template->addVar("master", "TITLE CONTENT", $title);
$template->addVar("master", "KEYWORD CONTENT", $keyword);
$template->addVar("master", "BANNER CONTENT", $banner);
// parse and display the template
$template->displayParsedTemplate("master");
We have not been able to figure out how to name each php file on our website in the title section so that when the page comes up it uses a different title than what is on the master template.
I don't understand php files very well and our web-design guy has not done any research to fix this problem.
Could someone look at one of our php files and see what we need to do.
Below is a sample of the section on the php file that I believe you need to look at. If not let me know what I need to show.
Thanks for the help,
Karey
//initialize an object of the class
$template=new patTemplate();
//set name of template file
$template->readTemplatesFromFile("templates/white_tmpl.html");
// set values for template variables
$template->addVar("master", "CENTER CONTENT", $content);
// set other variable values
$title=' - Feature page for “How the Right Brain Learns“';
$keyword='';
// replace placeholders with actual variable values
$template->addVar("master", "TITLE CONTENT", $title);
$template->addVar("master", "KEYWORD CONTENT", $keyword);
$template->addVar("master", "BANNER CONTENT", $banner);
// parse and display the template
$template->displayParsedTemplate("master");