/ Published in: PHP
URL: http://forum.redaxo.de/ftopic8690.html?&highlight=name+root+category
Expand |
Embed | Plain Text
<?php // get the root category of the article $path1 = (isset ($PATH[1])) ? $PATH[1] : \'\'; if ($path1 != \'\') { $category = OOCategory::getCategoryById($path1); $rootCategory = $category->getName(); } ?>
You need to login to post a comment.
