Loading...
 
Themes

Themes


Re: restrict text-preview to 100 characters?

United States

Try using the truncate modifier. See here for details.

Basically, you'll need to add something like:

{$the_page_data|truncate:100:"...":true}

-Rick




> i would like to restrict the output of text (vor various requests) to a certain number or characters
>
> !!!I. ARTICLES:
> show only the first 100 characters of the full article body

>
>
> !!!II. for CALENDAR Events
> list all events - but just show the first 100 characters of the description
>
>
> !!!II. for RSS-feeds
>
>
> (instead of just setting description to yes or no (desc=>1)
> i would want to show only - let´s say - the first 100 characters of description)

There are no comments at this time.