views:

40

answers:

1

I created a plugin and its basic functionalities are working well. It returns always testing as you can see in the method document_end().

But how can I access the plain, raw wiki page content?

This is my rawcontent.php file in the corresponding plugin folder.

+1  A: 

I got it. After a deep serach in the code of Dokuwiki I discovered rawWiki().

It returns the raw content of a page, the current page name/id is a "global" "constant" named $ID.

Solution:

global $ID;
return rawWiki($ID);
powtac