1. ragal51
  2. Commercial Templates
  3. Monday, 28 December 2020
  4.  Subscribe via email
Hi,

1) I am using the News Module and I am wondering if it is possible to have a few defined lines of the article instead of characters.
I want to tell the news module to display the first 2 or 3 lines of the article.
2) Why is the news module ignoring the line breakes? How can I tell the module not to ignor the line breaks? "</br>

Thank you
Ragal
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Regal

1. To amend try adding the following to the Custom CSS field of your templates parameters (Extensions -> Templates -> [YourTemplateStyle] -> Custom CSS)....

.j51news-caption {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}


Edit to taste where 3 is the maximum number of lines to display.

2. May I suggest sending temporary administration access to your Joomla installation to info@joomla51.com and we will examine this issue further. For our reference please paste a link to this post in your email.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Hi Regal

We have created an override for your module allowing you to display formatted text. Note that some html element can not be truncated without breaking the layout, in particular tables. I have disabled articles with tables in the summary area of the article.

Ciaran
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
The display of formatted text is a problem I also encounter. Can you explain the solution?
  1. more than a month ago
  2. Commercial Templates
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!