Forum Open Notice
Forum Open Notice
  1. Forum
  2. Profile for

Steinar A

Offline @steinara
Posts
4
Rank
New Member
Register Date
12 Oct 2010

Posts

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 =...

English K2 Community Steinar A, 15 years 11 months ago 14 replies

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);...

English K2 Community Steinar A, 16 years 2 weeks ago 14 replies

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);...

English K2 Community Steinar A, 16 years 2 weeks ago 14 replies

Any news(/pointers) on this? Didn't realize K2 missed this functionality untill I've created several categories and loads of items...

English K2 Community Steinar A, 16 years 1 month ago 13 replies

More