[pmwiki-users] How to include wiki page into php variable?

Octocias octocias at googlemail.com
Mon Apr 10 04:30:51 CDT 2006


Hi, Thanks for the suggestion.

It doesn't solve my problem though. What it does is preserve (keep) the
wikiCode I return. What I REALLY want to do, is return wikiCode that will
end up being translated correctly. In the example I showed earlier (at
http://www.octocias.com/index.php?n=Private.TestA ), the markup [[<<]] was
ending up being translated as a LINK to address "<<"! No, I want it to still
believe that [[<<]] is markup for a break.

I even tried setting my markup to work before the [[<<]] markup (by
specifying '<[[<<]]' ), but that didn't help.

thanks again,

Octocias



On 10/04/06, Hans <design at softflow.co.uk> wrote:
>
> Sunday, April 9, 2006, 10:07:57 AM, Octocias wrote:
> > Markup('test', '<include', '/\\(:[t|T]est +(.+) *:\\)/e',
> "QuickTest('$1')");
> > function QuickTest( $Source )
> > {
> >   $page = ReadPage( "$Source", READPAGE_CURRENT );
> >   $out  = $page['text'];
> >   return $out;
> > }
>
> try using the Keep function:
>
> Markup('test', '<include', '/\\(:[t|T]est +(.+) *:\\)/e',
> "QuickTest('$1')");
> function QuickTest( $Source )
> {
> $page = ReadPage( "$Source", READPAGE_CURRENT );
> $out = $page['text'];
> return Keep($out);
> }
>
>
> Best,
> Hans
>
>


--
Octocias
http://www.octocias.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060410/e582e511/attachment.html 


More information about the pmwiki-users mailing list