Ticket #11 (accepted enhancement)
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?
- add to odt/conf/default.php
$conf['tpl_template'] = 'my_custom_template.odt'; //comment this line to not use any template
- add to odt/conf/metadata.php
$meta['tpl_template'] = array('string');
- 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
Note: See
TracTickets for help on using
tickets.


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.