RE: [PHP] dynamic meta tag and title app?

From: Date: Wed, 18 Nov 2009 22:18:52 +0000
Subject: RE: [PHP] dynamic meta tag and title app?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-299918@lists.php.net to get a copy of this message
I usually just use some JS in the footer.php of the page to go back and change the title based upon other stuff, say the user's name or whatever: <script language="JavaScript" type="text/javascript"> parent.document.title = "<?= PRODUCT_NAME ?> :: <?= $PAGE_TITLE ?>"; </script> > -----Original Message----- > From: Jack S [mailto:jacklistmail@gmail.com] > Sent: Wednesday, November 18, 2009 8:30 AM > To: php-general@lists.php.net > Subject: [PHP] dynamic meta tag and title app? > > Hello All, > > Does anyone have a reference to a program that may be out there to > help with using a single header.php for a site, but then dynamically > loads different keywords , titles etc based on what page is including > the header file? > > Sample: > If home page include it knows the title and other variables would be > home, about us would be about etc. > > -- > Thanks! > Jack > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#299918) next »