[dokuwiki] Re: Understanding returnonly parameter

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: DokuWiki Mailinglist <dokuwiki@xxxxxxxxxxxxx>
  • Date: Thu, 9 Jun 2016 09:53:51 +0200

Is my understanding correct so far?

yes

Is the return format the format of the renderer (ODT XML code in my case) or
should it be HTML?

it should be in the format of the renderer. but you probably do not
need to implement it.

For what reason is the link/text returned to the caller?

This was introduced to have link handling at a central place. We often
need to display links in the wiki's interface where we're not in a
document context. This was the easiest way to reuse the XHTML
renderer's link formatting. In hind sight it was probably not the best
idea.

I am not aware of any case where this function would be called with a
returnonly=true parameter on other renderers than the default XHTML
one.

Andi

-- 
splitbrain.org
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: