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
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
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,
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
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
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-
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
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
: '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
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
10 matches
Mail list logo