News Module - Summary template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
bllablla
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 02, 2009 8:08 am

News Module - Summary template

Post by bllablla »

Hi guys,
how can i get character limit in summary text on Summary Template?

Tnx a lot!
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: News Module - Summary template

Post by Nullig »

bllablla
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 02, 2009 8:08 am

Re: News Module - Summary template

Post by bllablla »

Tnx but i don't get it. I'm not a developer so i don't understand where i have to put this smarty modifier.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: News Module - Summary template

Post by Nullig »

Look for:

  {eval var=$entry->summary}

in the summary template and change it to:

  {eval var=$entry->summary|truncate:30}

You can change the 30 to the amount of characters you want to have.

Nullig
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: News Module - Summary template

Post by Wishbone »

Look at the link he provided, because there are more options available to configure truncate's behavior.
bllablla
Forum Members
Forum Members
Posts: 11
Joined: Tue Jun 02, 2009 8:08 am

Re: News Module - Summary template

Post by bllablla »

Thanx a lot guys. Your are the best.
Locked

Return to “Modules/Add-Ons”