The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Dynamic Content Re: Dynamic Content


Not sure if it will work but can’t you use $_SERVER; which should return everything after index, so if in the url you have it will have a value of / or if the url is it would return /news/ etc.
then do something like this,,,

$urlValue = $_SERVER;
if($urlValue == "/") {
$titleValue = "";
} else {
$urlValue = ltrim($urlValue = "/");
$urlValue = rtrim($urlValue = "/");
$titleValue = " | " . $urlValue;

//////Then in the Title Tag

I can’t see why it wouldn’t work but i havn’t tested it and it’s probably not the best way to go about it….