Return to Snippet

Revision: 26642
at May 5, 2010 09:22 by jackomono


Initial Code
<?php
   
   // get the root category of the article
   
   $PATH = explode(\"|\",$this->getValue(\"path\"));
   $path1 = (isset ($PATH[1])) ? $PATH[1] : \'\';
   
   if ($path1 != \'\') {
      $category = OOCategory::getCategoryById($path1);
      $rootCategory = $category->getName();
   }


?>


<title><?php print $rootCategory.\": \".$this->getValue(\"name\") ?></title>

Initial URL
http://forum.redaxo.de/ftopic8690.html?&highlight=name+root+category

Initial Description


Initial Title
REDAXO - Rootkategorie immer im Titel anzeigen

Initial Tags
php

Initial Language
PHP