Modify

#9199 closed enhancement (fixed)

enable footer with wiki page version and datestamp in ODT export

Reported by: dkgdkg Owned by: abompard
Priority: normal Component: OdtExportPlugin
Severity: normal Keywords: patch
Cc: Trac Release: 0.11

Description

Thanks for the OdtExportPlugin! It would be really useful to be able to automatically include a footer which has the wiki page name, version and a timestamp in it.

So if i'm visiting http://trac.example/wiki/SomePage, and there are 4 entries in the page history, there would be a footer on each page that says something like:

SomePage v.4 2011-09-22 22:03-0400

Attachments (1)

add-keywords.diff (4.2 KB) - added by dkgdkg 21 months ago.
implementation of the keyword-based approach

Download all attachments as: .zip

Change History (5)

comment:1 Changed 21 months ago by dkgdkg

  • Keywords patch added

Alternately, i can imagine adding three new keywords:

  • TRAC-ODT-WIKINAME
  • TRAC-ODT-WIKIVERSION
  • TRAC-ODT-DATESTAMP

and then leave it to the site administrator to decide how/where to place them. I'll attach a patch that takes this approach. I offer it under the same license as the rest of the module, if you want it. I'm currently using it and it works well.

I applied these keywords to styles.xml as well as to content.xml because page footers are in styles (at least in the ODT generated by libreoffice 3.4.3 that i'm working with).

Changed 21 months ago by dkgdkg

implementation of the keyword-based approach

comment:2 Changed 20 months ago by dkgdkg

any thoughts about this patch?

comment:3 Changed 20 months ago by abompard

  • Status changed from new to assigned

Patch merged in r10787, sorry for the long delay. Can you please test that it still works for you ?

Thanks for your contribution and your patience.

comment:4 Changed 20 months ago by dkgdkg

  • Resolution set to fixed
  • Status changed from assigned to closed

Yep, it appears to work for me. thanks for the merge, this is great!

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.