Acces the raw wiki page contents in a Dokuwiki Render Plugin

a 夏天 提交于 2019-12-12 02:43:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!