[pmwiki-users] back to teasers :)

Patrick R. Michaud pmichaud at pobox.com
Fri Apr 15 07:59:39 CDT 2005


On Fri, Apr 15, 2005 at 08:48:48AM -0400, Radu wrote:
> Ah, yes, the long teaser debate. Did you people reach a conclusion? I 
> remember Pm was saying he could Cookbook the solution where the first 
> paragraph of a page can be served after the page name upon using an 
> argument to pagelist and friends.
> 
> How about if the argument gets a value, it's used to determine how long the 
> string will be.
> 
> Example:
> (:pagelist group=Machine fmt=include section=#Net chars=50:)
> 
> would display:
> 
> :pagename1:<first 50 chars in section #Net on pagename1>
> :pagename2:<first 50 chars in section #Net on pagename2>

Would those characters be treated as markup?  I'm guessing "yes"
from your example display output, but...

   - what if the first 50 chars contain a '[=' but not the closing '=]' ?
   - what if the 50th character is a backslash?
   - what if the first 50 chars contain newlines?

If the characters aren't treated as markup, do we make any attempt
to remove the markup from the extracted chars, or just leave it 'as-is'?

Pm



More information about the pmwiki-users mailing list