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
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. # 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
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. # 3
  • Page :
  • 1


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

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.