I'm building a magazine style website and have a need to display an Item's parent category and url on the item.php template.
The magazine is organised by Issue and then sub-categories for different sections of the magazine - eg. Art, History - but ideally we'd like to have a link on each article page going to the main contents page... so in the K2 structure, the parent category.
I found this very old post which I've been able to use to retrieve the parent category name - www.joomlaworks.net/forum/k2-en/28957-solved-show-parentcategory-in-category-item-php - but wondering if anyone has any suggestions as to how I might retrieve it's URL as well?
Do I need to run some DB queries directly in the template file?
Thanks
Nathan
The magazine is organised by Issue and then sub-categories for different sections of the magazine - eg. Art, History - but ideally we'd like to have a link on each article page going to the main contents page... so in the K2 structure, the parent category.
I found this very old post which I've been able to use to retrieve the parent category name - www.joomlaworks.net/forum/k2-en/28957-solved-show-parentcategory-in-category-item-php - but wondering if anyone has any suggestions as to how I might retrieve it's URL as well?
Do I need to run some DB queries directly in the template file?
Thanks
Nathan
Edited 7 years 2 months ago by Nathan