Keyword

Show only number of comments in category list...

More
5 years 10 months ago - 5 years 10 months ago #168306 by Remco
I would like to remove the tekst and "(" and ")" for the comments link in the category_item list view, only the number to be linked is enough for me.
But I can't change it in de template? How can i change this?

If got the following code:
<a href="<?php echo $this->item->link; ?>#itemCommentsAnchor">
						  <?php echo $this->item->numOfComments; ?> 
					      </a>
Last edit: 5 years 10 months ago by Remco.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
5 years 10 months ago #168329 by Krikor Boghossian
Replied by Krikor Boghossian on topic Show only number of comments in category list...
This is the default code
github.com/getk2/k2/blob/master/components/com_k2/templates/default/category_item.php#L252-L270

As you can see, <?php echo $this->item->numOfComments; ?> only returns the number,
If you are still getting language strings, make sure you have edited the correct files. www.joomlaworks.net/blog/item/194-k2-inheritance-sub-templating

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum