Page 1 of 1
News Module - Summary template
Posted: Fri Dec 24, 2010 6:41 pm
by bllablla
Hi guys,
how can i get character limit in summary text on Summary Template?
Tnx a lot!
Re: News Module - Summary template
Posted: Fri Dec 24, 2010 7:00 pm
by Nullig
Re: News Module - Summary template
Posted: Fri Dec 24, 2010 7:06 pm
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.
Re: News Module - Summary template
Posted: Fri Dec 24, 2010 7:13 pm
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
Re: News Module - Summary template
Posted: Fri Dec 24, 2010 7:14 pm
by Wishbone
Look at the link he provided, because there are more options available to configure truncate's behavior.
Re: News Module - Summary template
Posted: Fri Dec 24, 2010 7:16 pm
by bllablla
Thanx a lot guys. Your are the best.