[pmwiki-users] How to include wiki page into php variable?
Hans
design at softflow.co.uk
Mon Apr 10 03:16:10 CDT 2006
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
More information about the pmwiki-users
mailing list