Back to my blog Back to my projects

Dokuwiki ODT plugin

Ticket #11 (accepted enhancement)

Opened 3 years ago

Last modified 2 years ago

add template option in config

Reported by: Berteh Owned by: Aurelien
Priority: major Version:
Keywords: Cc: berteh@…

Description (last modified by Aurelien) (diff)

I hacked the plugin to add a “template” option in config, could you please integrate in trunk?

  1. add to odt/conf/default.php

$conf['tpl_template'] = 'my_custom_template.odt'; //comment this line to not use any template

  1. add to odt/conf/metadata.php

$meta['tpl_template'] = array('string');

  1. edit function document_end() in odt/renderer.php: (around line 250)
function document_end(){
+      if (!$this->template) { // if no template chosen in current page, get default template from config
+           $this->template=$this->getConf("tpl_template");
+      }
+
       if ($this->template) { // template chosen

Change History

comment:1 Changed 2 years ago by Aurelien

  • Status changed from new to accepted
  • Owner set to Aurelien

Sorry for the late reply.

A default template from the config is something I've had in my head for a long time, so I'll keep your implementation in mind when I get to do it.

Thanks.

comment:2 Changed 2 years ago by Berteh

merci!

comment:3 Changed 2 years ago by Aurelien

  • Description modified (diff)

I'm starting to work on that.

Note: See TracTickets for help on using tickets.