Page 1 of 1
length news sumary text
Posted: Mon Apr 10, 2006 2:52 pm
by musicscore
Hey,
Because I have 2 news colums, I want each colum max. 50 char. long.
I added this command to my template :
{cms_module module="news" start="5" number="5" sortby="news_date" length="50"}
Everything workst fine but the length is more then 50 char.
I use CMSMS 0.12.1. Can I set the maximum length of the Title tekst to 50
Greetings
Musicscore
Re: length news sumary text
Posted: Mon Apr 10, 2006 3:44 pm
by Dr.CSS
just don't put more than 50 char. in the summary box at the top of the news edit page.
mark
Re: length news sumary text
Posted: Mon Apr 10, 2006 7:37 pm
by musicscore
My site will be edited by others (sportclub coaches / trainers, etc.) I'm trying to make the site foolproof. I'm getting very far but there are stil some problems. So is the length of the news title & the possiblility of setting where a page will be in the menu by the editor, not only by the admin. Userrights could be more specific.
If you have a hint, please let me know.
Greetings
Musicscore
(sorry for my bad English)
Re: length news sumary text
Posted: Fri Jun 09, 2006 1:39 pm
by zerrvox
this is easily done in the template with the smarty function truncate..
Code: Select all
{eval var=$entry->content|truncate:350:"..."}
first parameter determines how many characters to truncate to.
second is a text string that replaces the truncated text. (not included in lenght paramer)
I know this topic is a bit old, but I thought I would give you the answer if you still need it and have not solved it and It would be available to other people searching in the forum for a way to do this..
