Opened 7 years ago

Closed 7 years ago

#9199 closed enhancement (fixed)

enable footer with wiki page version and datestamp in ODT export

Reported by: Daniel Kahn Gillmor Owned by: Aurélien Bompard
Priority: normal Component: OdtExportPlugin
Severity: normal Keywords: patch
Cc: Trac Release: 0.11


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 Daniel Kahn Gillmor 7 years ago.
implementation of the keyword-based approach

Download all attachments as: .zip

Change History (5)

comment:1 Changed 7 years ago by Daniel Kahn Gillmor

Keywords: patch added

Alternately, i can imagine adding three new keywords:


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 7 years ago by Daniel Kahn Gillmor

Attachment: add-keywords.diff added

implementation of the keyword-based approach

comment:2 Changed 7 years ago by Daniel Kahn Gillmor

any thoughts about this patch?

comment:3 Changed 7 years ago by Aurélien Bompard

Status: newassigned

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 7 years ago by Daniel Kahn Gillmor

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Aurélien Bompard.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.