[pmwiki-users] How to show only the first 100 words of content of a wikipage?

Eugene Van den Bulke eugene at boardkulture.com
Thu Jun 7 08:50:04 CDT 2007


Martin Spindler wrote:
> Hi list,
> 
> for the startpage of my blogsimple2 wiki I would like to show a summary 
> of every post. How can I show only the first 100 words (or first 
> paragraph, or ???) of each wikipage?
> 
> Looking forward for any advice/hint.
> 
> Thanks,
> Martin.

On http://www.3kwa.com I include on the homepage the first 3 lines of 
the latest post in the Logbook group, fine tune and your are set ;)

 >>bgcolor=#a4b6c8 padding=2px<<

(:pagelist group=Logbook count=1 order=-name fmt=#lnews list=normal 
name=-HomePage:)

 >><<

with

fmt=#lnews

For the display of the latest news on the home page

[[#lnews]]
!!{=$Name}
(:include {=$FullName} self=0 lines=3:)

%right% [[{=$FullName} | ... more ...]]
[[#lnewsend]]







More information about the pmwiki-users mailing list