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

2009-11-19 Thread Ashley Sheridan
On Wed, 2009-11-18 at 21:42 -0800, Daevid Vincent wrote: Actually, you can make a site today that uses JAvascript to enhance functionality. I'd say a title fits that category. You can live without it. Something as simple as a title for a page shouldn't be relying on Javascript to

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

2009-11-19 Thread tedd
At 11:30 AM -0500 11/18/09, Jack S wrote: 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

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

2009-11-19 Thread Jack S
Hi Todd, This looks like a good starting point for me. I was going to use $_SERVER['PHP_SELF']; but I think ($_SERVER['SCRIPT_NAME']); in your example will always return just the script info and not additionally passed information, which will save me trouble shooting later! Thanks!!! On Thu,

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

2009-11-19 Thread tedd
At 10:48 AM -0500 11/19/09, Jack S wrote: Hi Todd, This looks like a good starting point for me. I was going to use $_SERVER['PHP_SELF']; but I think ($_SERVER['SCRIPT_NAME']); in your example will always return just the script info and not additionally passed information, which will save me

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

2009-11-19 Thread Paul M Foster
On Thu, Nov 19, 2009 at 01:09:48PM -0500, tedd wrote: At 10:48 AM -0500 11/19/09, Jack S wrote: Hi Todd, This looks like a good starting point for me. I was going to use $_SERVER['PHP_SELF']; but I think ($_SERVER['SCRIPT_NAME']); in your example will always return just the script info

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

2009-11-18 Thread Daevid Vincent
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-

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

2009-11-18 Thread Ashley Sheridan
Rather than use Javascript, which would limit your site to only those browsers that support Javascript, have it enabled and aren't using any plugins (like Noscript). You could just use an array with the details in, set the type of page as one of the first things in your script, and then output

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

2009-11-18 Thread Daevid Vincent
you construct your page and the order of things, and how dynamic you need the title to be. _ From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Wednesday, November 18, 2009 2:24 PM To: Daevid Vincent Cc: 'Jack S'; php-general@lists.php.net Subject: RE: [PHP] dynamic meta tag

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

2009-11-18 Thread Ashley Sheridan
: 'Jack S'; php-general@lists.php.net Subject: RE: [PHP] dynamic meta tag and title app? Rather than use Javascript, which would limit your site to only those browsers that support Javascript, have it enabled and aren't using any plugins (like Noscript). You could just use an array

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

2009-11-18 Thread Daevid Vincent
Actually, you can make a site today that uses JAvascript to enhance functionality. I'd say a title fits that category. You can live without it. Something as simple as a title for a page shouldn't be relying on Javascript to function! Shouldn't = I agree. Sometimes the way a page is