Hi
How do I alter the number of charecters or words that are displayed from the news summary. IE I want to limit the length of the news summary on my homepage so it only displays approx. 25 words?
thanks
Jon
News module
Re: News module
Whatever you put in the summary field shows up in the summary, so you can just put whatever number of words you want. If you don't put anything in the summary, and put all of your text in the content area, then it all shows up as a summary, I believe.
Re: News module
You could use the smarty truncate function to limit the number of characters displayed.
Change the summary fields in your news templates from:
{eval var=$entry->summary}
to:
{eval var=$entry->summary|truncate:200}
or whatever number of characters you want to display. This will cut off the output at a the end of a word and add "...".
Nullig
Change the summary fields in your news templates from:
{eval var=$entry->summary}
to:
{eval var=$entry->summary|truncate:200}
or whatever number of characters you want to display. This will cut off the output at a the end of a word and add "...".
Nullig
Re: News module
Hey The truncate thing worked perfect!!
cheers
