This question about Using an extension: Answered

UpdateAttachmentsPlugin updates topic to newer version each time attachment is updated

Hi there,

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?

UpdateAttachmentsPlugin is executed via cronjob.

-- ValentinKozlov - 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.

-- JulianLevens - 15 Feb 2012

 

QuestionForm edit

Subject Using an extension
Extension UpdateAttachmentsPlugin
Version Foswiki 1.1.3
Status Answered
Related Topics
Topic revision: r3 - 07 Sep 2016, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy