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.

Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting