问题
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:
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);
来源:https://stackoverflow.com/questions/2958070/acces-the-raw-wiki-page-contents-in-a-dokuwiki-render-plugin