/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // get the root category of the article $path1 = (isset ($PATH[1])) ? $PATH[1] : \'\'; if ($path1 != \'\') { $category = OOCategory::getCategoryById($path1); $rootCategory = $category->getName(); } ?> <title><?php print $rootCategory.\": \".$this->getValue(\"name\") ?></title>
URL: http://forum.redaxo.de/ftopic8690.html?&highlight=name+root+category
Comments
