Keyword

Introtext limit question

  • Nicola De Bello
  • Nicola De Bello's Avatar Topic Author
  • Offline
  • New Member
More
14 years 11 months ago #84132 by Nicola De Bello
Introtext limit question was created by Nicola De Bello
Hi everybody.OK, the Introtext limit works perfecly in the "Category Listing" visualization.There is a toggle (Introtext HIDE or SHOW), and there is a word limit numeric field.But I found no way of limiting the Introtext in the "Latest items from (one or more) users or categories" Menu Item Type visualization.There is ONLY a toggle (HIDE or SHOW), no numeric field, and no inheritance from the Category properties.Am I missing something? Is there a way of limiting the number or words in "Latest items from (one or more) users
or categories" too?Thanks in advance!Nick

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

  • Nicola De Bello
  • Nicola De Bello's Avatar Topic Author
  • Offline
  • New Member
More
14 years 11 months ago #84133 by Nicola De Bello
Replied by Nicola De Bello on topic Introtext limit question
Playing with templating, I found a possible solution/workaround by myself.
Just add the following line:

$this->item->introtext = K2HelperUtilities::wordLimit($this->item->introtext, 75)

to "latest_item.php" (where introtext is managed), and only 75 words would appear.

Nick

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


Powered by Kunena Forum