[dokuwiki] Re: Re-generating of meta information for pages

  • From: Dmitry Katsubo <dma_k@xxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 24 Feb 2009 00:14:24 +0100

Christopher Smith wrote on 02/23/2009 06:15 PM:
> On 23 Feb 2009, at 21:43, Dmitry Katsubo wrote:
>> I noticed, that Doku_Renderer_metadata:73:header() is never called.  I
>> am using the following plugin as a extension for build-in headers:
>>
>> http://wiki.jalakai.co.uk/dokuwiki/doku.php/tutorials/header
> 
> Oh!
> 
> I wouldn't use that plugin.  Its an aborted experiment into adding
> formatting within headers.  To work effectively it needs a guarantee
> that all syntax modes are using the 'cdata' instruction for actual
> content.  That guarantee is impossible to get.

Hi Chris!

I've just realized that you are the author of this plugin! Well, it
works fine for me (except some surprises) and I am thankful for you for
that.

So, in function render() what I need is to add the code:

if($mode == 'meta') {
  if (!$this->meta['title']) $this->meta['title'] = $text;
}

I am not sure what to do with this:

if ($this->capture && ($level > 1)) $this->doc .= DOKU_LF.$text.DOKU_LF;

Just ignore?

Can you give an example, when some syntax modes are not using 'cdata'
instructions, so they break header plugin?

Thanks!
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: