Jump to content

Truncate topic open by an article in Pages


Recommended Posts

@Amy Pond In the template topicRow find:

<h4 class='ipsDataItem_title ipsContained_container'>

And change it to:


<h4 class='ipsDataItem_title ipsContained_container ipsTruncate ipsTruncate_line'>

That should automatically truncate the title without having to specify the number of characters.

I use this in a number of places on my site to stop lines from overflowing (see example here https://moviebuffs.org/forums/forum/45-superheroes/ the first item is a very long title)

I also use it on the front page for the Our Picks carousel here > https://moviebuffs.org/

Let me know it if works for you 🙂

 

Link to comment
Share on other sites

8 hours ago, Amy Pond said:

Hello! I set to open a new topic on a specific forum when I add an article; is it possible to truncate the topic after a certain number of characters? 

Thank you 🙂 

I don't think so. But you may be able to use the "Quote" functionality so that it auto-hides the data but it will still be expandable.

Link to comment
Share on other sites

Ah, my bad there.  I thought you meant the topic title, but it's the topic content itself you want truncated.  You won't be able to do this if you only want specific topic content truncated, as it's all or nothing, in that it will be all topics that will be affected.  You would need a plugin that could isolate which forums would be affected, and that will cost you as I don't think there is anything in the marketplace.  Apologies for misreading what you wanted 🙂

 

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...