Phil_D
01-29-2005, 07:24 PM
I would like to give something back for all the great help found on this site. I do not know if this solution appears here somewhere but I have been unable to find it. The following code will allow you to have different titles for any or all pages rather than just the listing pages discussed elsewhere in the forums. Simply add this code to your user_top.html between the <TITLE> and </TITLE>:
<?php echo "$title"; ?>
It can follow existing title code such as <?php echo "$config[site_title]" ?>
Then, at the beginning of each page such as legal.php include the following snippet $title = " - your unique title";
The code must be before the common.php call
<?php
$title = " - your unique title";
include("include/common.php");
include("$config[template_path]/user_top.html");
?>
Have a look at the implementation on the site I am working on.
http://www.movingtobarrie.com
BTW go past index as it is not used on first page.
Phil
<?php echo "$title"; ?>
It can follow existing title code such as <?php echo "$config[site_title]" ?>
Then, at the beginning of each page such as legal.php include the following snippet $title = " - your unique title";
The code must be before the common.php call
<?php
$title = " - your unique title";
include("include/common.php");
include("$config[template_path]/user_top.html");
?>
Have a look at the implementation on the site I am working on.
http://www.movingtobarrie.com
BTW go past index as it is not used on first page.
Phil