Opened 7 years ago

Closed 7 years ago

enable footer with wiki page version and datestamp in ODT export

Reported by: Owned by: Daniel Kahn Gillmor Aurélien Bompard normal OdtExportPlugin normal patch 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


comment:1 Changed 7 years ago by Daniel Kahn Gillmor

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

implementation of the keyword-based approach

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

Status: new → assigned

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

comment:4 Changed 7 years ago by Daniel Kahn Gillmor

Resolution: → fixed assigned → closed

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

Modify Ticket

Change Properties