I want to have the link of the article category in the output of mod_articles_news Right now I just have the category name with this:
<?php echo $item->category_title; ?>
Thank you
Eventually it was simpler than I thought, this worked for me:
<?php echo "<a href='index.php?option=com_content&view=category&layout=blog&id=".$item->catid."'>" ; ?><?php echo $item->category_title; ?></a>
so after checking the helper.php category ID can be grabbed by this:
$item->catid
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.