Page title tag
20 posts by 2 authors in: Forums > CMS Builder
Last Post: July 2, 2008 (RSS)
By chassa2556 - July 1, 2008
<title><?php echo $pagesRecord['pagetitle'] ?></title>
<META NAME="Description" CONTENT="<?php $pagesRecord['meta_description']; ?>">
<META NAME="KeyWords" CONTENT="<?php $pagesRecord['metakeywords']; ?>">
But it doesn't seem to work even though the title tag does. When I go to view source the meta tags aren't there.
Any ideas?
Re: [chassa2556] Page title tag
By Dave - July 1, 2008
interactivetools.com
By chassa2556 - July 2, 2008
<title><?php echo $pagesRecord['pagetitle'] ?></title>
<META NAME="KeyWords" CONTENT="<?php $pagesRecord['metakeywords']; ?>">
<META NAME="Description" CONTENT="<?php $pagesRecord['meta_description']; ?>">
...and this is what I get in the source code - note the title tag works.
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META NAME="Description" CONTENT="">
<META NAME="KeyWords" CONTENT="">
<title>The Dower House, Straloch estate</title>
<style type="text/css">
Re: [chassa2556] Page title tag
By Dave - July 2, 2008
Try adding this temporarily to see all the available fields:
<xmp><?php print_r($pagesRecord); ?></xmp>
Let me know what that says.
interactivetools.com
Re: [chassa2556] Page title tag
By Dave - July 2, 2008
<title><?php echo $pagesRecord['pagetitle'] ?></title>
<META NAME="KeyWords" CONTENT="<?php $pagesRecord['metakeywords']; ?>">
<META NAME="Description" CONTENT="<?php $pagesRecord['meta_description']; ?>">
...
<body>
<xmp><?php print_r($pagesRecord); ?></xmp>
Once you add that it will display a list of all the available fields in $pageRecord. Just copy and paste that and then remove the tag again.
interactivetools.com
By chassa2556 - July 2, 2008
Re: [chassa2556] Page title tag
By Dave - July 2, 2008
interactivetools.com
By Dave - July 2, 2008
<title><?php echo $pagesRecord['pagetitle'] ?></title>
<META NAME="KeyWords" CONTENT="<?php echo $pagesRecord['metakeywords']; ?>">
<META NAME="Description" CONTENT="<?php echo $pagesRecord['meta_description']; ?>">
It working now. And whenever you need to add new tags you can always use the code generator to create a list of them and just copy and paste the ones you need. It never forgets the echo part! :)
Hope that helps!
interactivetools.com