[pmwiki-users] $Group, $Name in Markup definition

Anton Shevtsov shevtsov.anton at gmail.com
Mon Feb 13 03:05:54 CST 2012


Hi

How i can access to $Group, $Name variable from custom Markup?

example:

Markup("get_content", "directives",
'/\(:get_content\s+\((.+?)\):\)/e',"_get_content($1)");
.....
.....
function _get_content($filename)
{
$foo=file_get_contents($mypath.$Group.'/'.$Name.'/'.$filename);
return $foo;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20120213/48a44e5e/attachment.html>


More information about the pmwiki-users mailing list