[dokuwiki] Re: Using DokuWiki_Plugin::render_text() to generate small piece of xhtml from some wiki template
- From: "Zen-Do.Ru" <admin@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 20 Oct 2016 03:12:53 +0300
- To add some output to HTML, we can change template.
No, the wiki page should be left as it is.
I mean not the template that fills a new wiki page (e.g. with a title).
I mean an output template, such as /lib/tpl/dokuwiki
A wiki page stays as it is, only its view in a browser would change with
whichever additional HTML we put there.
Alternatively, plugins can alter a page with JS, which could be easy:
https://www.dokuwiki.org/devel:plugin_file_structure#javascript
(Of course that works if we form a text for a browser view.
Export would be another story).
Let's assume I have piece of wiki text received from external source and I want
it to be embedded into output HTML from plugin.
See plugins that embed external pages content into a current page:
https://www.dokuwiki.org/plugin:include
https://www.dokuwiki.org/plugin:tabinclude
Cheers
- Alex
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist
Other related posts: