This question about Using an extension: Answered
UpdateAttachmentsPlugin updates topic to newer version each time attachment is updated
The task I have is: on a wiki page there is an attached file, a certain logbook, which is synchronized, i.e. downloaded to ../pub/ from another machine via rsync, 3 times per day. I have to show on the wiki page correct time/date of a last modification of this file. Standard AutoAttach
feature worked fine but the drawback is that it also attaches other stuff in other topics which I do not want. Thus I installed UpdateAttachmentsPlugin
. It seems to work rather fine, i.e. attachment file data are updated but at each time when the plugin finds that there is a newer version of the file, it also updates the topic version, and naturally subscribed people get notified. And this is quite annoying.
Is there a way to avoid automatic change of the topic version?
is executed via cronjob.
- 15 Feb 2012
The short answer is no. Details of attachments are kept as meta-data in the topic, therefore the topic is changed hence the new topic revision.
The long answer is to have attachments as first class foswiki objects with independent meta-data. The main topic then refers to these independent topics rather than the attachment directly.
However, that requires core changes. I believe PaulHarvey
does something like that but I'm not sure how far this work goes.
I will write up a feature proposal in the days ahead. Its been on my mind because of other work I'm doing. Alas you'll need to be patient.
- 15 Feb 2012