Keyword

limit of words intro in menu TAG

  • Daniel Gomez
  • Daniel Gomez's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago #167888 by Daniel Gomez
limit of words intro in menu TAG was created by Daniel Gomez
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.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 6 months ago #167932 by Krikor Boghossian
Replied by Krikor Boghossian on 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

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

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

  • Daniel Gomez
  • Daniel Gomez's Avatar Topic Author
  • Offline
  • New Member
More
6 years 6 months ago #167946 by Daniel Gomez
Replied by Daniel Gomez on 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.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 6 months ago #167971 by Krikor Boghossian
Replied by Krikor Boghossian on topic limit of words intro in menu TAG
You 're welcome Daniel :)

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