Seems like the $item in the K2 module doesn't contain the parent-attribute. This is not a nice hack, but you can "reload" the category by: (in modules/mod_k2_content/tmpl/Default/default.php (or make your own template)). $category =...
Hi Daniel. I just need to display it for SEO-reasons, so I use it on line ~240 like this: $parentcategory = & JTable::getInstance('K2Category', 'Table'); $parentcategory->load($item->category->parent);...
Hi all. I'm fetching the name of the parent category for a sub-category by doing this in the view.html.php file: $parentcategory = & JTable::getInstance('K2Category', 'Table'); $parentcategory->load($item->category->parent);...
Any news(/pointers) on this? Didn't realize K2 missed this functionality untill I've created several categories and loads of items...
More