[pmwiki-users] markup expression prob.

The Editor editor at fast.st
Thu Jul 19 09:17:34 CDT 2007


On 7/19/07, noskule <noskule at gmx.net> wrote:
> noskule schrieb:
> > hi list
> > If a value in a substring contains a linebreak the substring doesn't
> > work. Is there a way arount it?
> >
> > I made an example in http://pmwiki.org/wiki/Main/WikiSandbox
> here a better place: http://pmwiki.org/wiki/PmWiki/MarkupExpressionsTest
> >
> > thanks for any hints
> > nos


I notice it also throws an error, with full path disclosure.  The work
around is to create your own markup expression function (rather than
substr) that takes the ptv name only as a parameter, or perhaps
page:name, parses that and then extracts the value in the function.

Something like:

{(mysubstr comment 0 12)}

Cheers,
Dan



More information about the pmwiki-users mailing list