Hello
WikiGuest
Log In
or
Register
Users
About
Blog
Extensions
Documentation
Community
Development
Tasks
Download
Support
You are here:
Foswiki
>
Support Web
>
SupportQuestions
>
Question385
(revision 5) (raw view)
Hi, i miss a restore function (to restore/reset former attachment versions) in the attachment view. Does this function exist anywere in the foswiki sphere? I guess no, but before i make this work, i just want to ask you... Thank you, Alex -- Main.AlexanderStoffers - 19 Jan 2010 There is no way to do this interactively (nor is there any way to do it on a topic) and it goes against the "nothing is lost" principle. If you want to re-attach an old revision of an attachment, then: 1 Download the old revision you want to restore 1 Re-attach it as the attachment -- Main.CrawfordCurrie - 20 Jan 2010 Crawford's right, there's no interactive way to restore an old attachment version. But we do have this for topics ("More topic actions"). You can restore a previous version; it opens up the editor filled with the selected revision's topic text. -- Main.PaulHarvey - 20 Jan 2010 I just created a restore-script in an easy way: sub restoreAttachment: 1. get the attachment via viewfile 2. save the attachment via perl-filehandling Afterwards i created a new functionallity in the bin folder called "restoreAttachment". I also changed the "Changes" table in the attachment view. With my new link "restore" in the action row i call the restoreAttachment in the bin folder (http://127.0.0.1/foswiki/bin/restoreAttachment/Main/Test1?filename=Test1.png;rev=5) Is there a gerneral need of such a functionality? -- Main.AlexanderStoffers - 22 Jan 2010 it certainly would be nice to add this functionality to the manage attachments user interface. if you make a feature request and attach your code to it, I'm sure it will be interesting :) -- Main.SvenDowideit - 22 Jan 2010
QuestionForm
edit
Subject
Missing functionality
Extension
Version
Foswiki 1.0.8
Status
Answered
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r5
<
r4
<
r3
<
r2
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r5 - 22 Jan 2010,
SvenDowideit
Support
Quick Links
Support questions
FAQ's
Tips
Extensions support
Supplemental documents
Wiki consultants
Tools
Tasks
Index
Changes
Changes in all webs
Notifications
Statistics
Sandbox
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see
CopyrightStatement
.