Keyword

[SOLVED] How to limit introtext on multi-category menu page

More
10 years 4 months ago - 10 years 4 months ago #101167 by Odin Mayland
Mohamed,

Thanks for this!

I would prefer to use an override but am not sure the path. Does this look right?
/templates/TEMPLATENAME/html/mod_k2_tools/helper.php

AND

This code works for some but not all the catTitle.
example of site under construction

Attachment not found

Attachments:

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
10 years 4 months ago #101168 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: How to limit introtext on multi-category menu page
Try to decrease the value of $catTitleLimit

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

More
10 years 4 months ago #101169 by Odin Mayland
I have but that would not make sense.

If the first 2 sub-categories were truncated why was the last not?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 4 months ago - 10 years 4 months ago #101170 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: How to limit introtext on multi-category menu page
The no-wrap attribute of .catlistmenu .catTitle causes this. But you have to specify a smaller limit as well.

PS. you can do the same with CSS as well.

text-overflow: ellipsis will do the trick.

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

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

More
10 years 4 months ago #101171 by Odin Mayland
text-overflow: ellipsis was the answer!

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


Powered by Kunena Forum