[thelist] Dynamic Title / Meta

DAVOUD TOHIDY dtohidy at hotmail.com
Sat Jul 24 21:41:17 CDT 2010


I am trying to have different titles, etc. for different pages. The index.php is the main page where other pages are being dynamically placed and replaced within this page by defining an array and etc.

$mypage = array ("" => "myhomepage.php", "0x01" => "mycontactpage.php",   // etc.

I have the following in the header of index.php file:

case '/index.php':
     $title = 'Home page title';
     $keywords = 'DeltaReprographics, Quality and etc.';
     $description = 'DeltaReprographics is a quality printer solution provider';
case '/?pId=0x01':
     $title = 'Company Overview';
     $keywords = 'overview, overview2';
     $description = 'This is the overview of the DeltaReprographics';
default: '/index.php';

It only shows the title etc. for index.php page. Other pages do not have their own title. etc.
Your input would be appreciated.

Game on: Challenge friends to great games on Messenger

More information about the thelist mailing list