Support will be in summer mood from 6-17 August, 2018 while the JoomlaWorks folks get some rest.
Keyword

limit of words intro in menu TAG

  • Daniel Gomez
  • Daniel Gomez's Avatar Topic Author
  • Offline
  • New Member
More
3 months 5 days ago #167888 by Daniel Gomez
Daniel Gomez created the topic: limit of words intro in menu TAG
Community,

My problem is that when I create a K2 TAG menu, the results in this menu show the complete text of the item, it does not cut the limit of introduction words.

I have searched the general and category options of K2, without getting the text "cut" when you reach the limit of words intro of the category.

Is there any way to make this possible? or should the code be interfered with and if so, what would it be?
Attachments:

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

More
3 months 3 days ago #167932 by Krikor Boghossian
Krikor Boghossian replied the topic: limit of words intro in menu TAG
Hello,

You can override the tag.php file and manually set a limit -> getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

Change
<?php echo $item->introtext; ?>
to:
<?php echo K2HelperUtilities::wordLimit($item->introtext, 15); ?>
with 15 being the new limit

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Daniel Gomez
  • Daniel Gomez's Avatar Topic Author
  • Offline
  • New Member
More
3 months 2 days ago #167946 by Daniel Gomez
Daniel Gomez replied the topic: limit of words intro in menu TAG
thanks for your help, is what I needed

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

More
2 months 4 weeks ago #167971 by Krikor Boghossian
Krikor Boghossian replied the topic: limit of words intro in menu TAG
You 're welcome Daniel :)

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

Moderators: william white