Thanks!
Abel Solórzano Astorga wrote:
Hi Ricardo,
To use the application you should put the following code on your XWiki page:
{{FileStorage/}}
I tested on XWiki 2.3, 2.4 and 2.5 versions until now and is working fine.
I've installed it in a 2.4 XE/XEM and once I see some oddities, I've
move to a test environment running now a XE 2.6-SNAPSHOT.31892
installation. Please, see below.
The application let you add a description to an
attachment.
It presents the
user a textarea to write the description and a file input component to
choose the file to attach. To attach the file with the description the user
should click the "Attach" button. There is some kind of validation when the
user try to attach the file. It is not posible to attach a file with an
empty description or a description that is more than 255 characters.
Below the component that let you attach files, there is a table that has two
columns: File Name and Description of File. Next to each row there are two
icons a pencil and a red cross (XWiki icons). If you click the pencil you
can edit the description for the corresponding attachment (A modal box
appears). If you click the red cross the attachment is deleted.
The application use the same logic as the "Attach files to this document"
components on the Attachments section at the bottom of the xwiki pages. So
the attachment are also shown in the Attachments section.
As far as I can see, it allows to add the description to documents
attached by using this same application. I mean, if I call FileStorage/
from a document with already attached files, I can't use it to add a
description to those files. This leads to a somehow inconsistent
situation where the pencil theoretically allows edition of the
description of newly attached files but do nothing for already attached
ones that remains with an empty description or for newly attached files
using the out-of-the-box attachments utility. Must I been able to edit
the description for already attached files? Thanks.
Another curious thing is that when I attach a document by using your
application, it creates two versions of the attachment, let's call it
1.1 and 1.2. Each time I try to edit the description, two more releases
are added: 1.3 an 1.4 in a second row and so on, so forth.
I've not been able to get the description edited. The ModalBox opens
curretly, it allows enter a new description, but the OK button add only
two new attachment releases, but the description remains untouched.
I had some problems uploading files bigger than 16M.
So I follow the
suggestions on the following page
http://www.mail-archive.com/users@xwiki.org/msg04047.html.
Well, this is a well know issue, but there are tones of smaller
attachments, at least here, that could take profit of this application! :-)
You can find an image of the application at
http://dl.dropbox.com/u/3688604/file-storage.PNG.
About the LightBox, I would preffer to use it instead of the ModalBox. But
until now I couldn't find an example of how to use it. Somebody knows if
there is some documentation regarding the LightBox component? Somebody knows
which is the component that is used on the pop up dialog that is shown when
you want to add a new user. Is that the LightBox component?
I've not been able yet to get access and minimally understand XWiki
code. But, do you know this?
http://www.lokeshdhakar.com/projects/lightbox2/
Let me know if you need something else.
I really find this application really useful. I really miss the
possibility of adding descriptions to the attached files. It is
currently possible to add a summary to a version of a document. Or tag
it. But there is no way of adding a description to an attached file. As
stated in a reply to a message in the developers list
(
http://markmail.org/thread/57f2kswlpg5oxvxx), it would be possible, for
instance, extract meta information from an attached file, but, as a
XWiki document could be tagged, or somehow added semantic, I miss
something similar that could add at least a description to attached files.
Of course there are a number of things that must be discussed, but your
application is a first interesting approach (please, take into account
that I'm not a dev, so my opinion is really weak) to solve, for me, a
missing XWiki feature.
Let's see if other could be interested in it!
Ah! One more thing: attachment links in the "File Storage" table, points
to Slimsoft wiki instead of the wiki where they are located.
Check this and feel free to test it:
http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/HasAttac…
In the shake of security, I'll let it open only a couple of days.
Communication with this server is a bit rudimentary, apologies for any
failure!
Thank you so much!
Regards,
Abel
On Thu, Nov 4, 2010 at 2:02 AM, [Ricardo Rodriguez] eBioTIC. <
ricardo.rodriguez(a)ebiotic.net> wrote:
Abel Solórzano Astorga wrote:
Hi, I finally finish a little application that
let you attach files to an
XWiki page and add, edit or delete a comment for the attachment. I didn't
have much time to create a page for the app on the xwiki server. Maybe in
the future. But I want to put the application online in case someone need
that functionality (I know Ricardo need it :) ).
Thanks! Please, Abel, even though you have no time to create now that
page, could you provide some guideline about how to use your application
and how we do must expect?
I've downloaded it a imported in a XE 2.6-SNAPSHOT.32286 installation.
ModalBox seems to work fine, but I'm not able to understand how to use
your application.
As for the use of ModalBox. Taking into account that XWiki is making
extensive use of LightBox
(
http://www.lokeshdhakar.com/projects/lightbox2/), has you considered to
use it to get a more consistent appearance? Thanks again!
I would like to collaborate by creating a XWiki page for such an
application once I understand how to use it!
The xar file of the File
Storage application (I called like that) is at
http://dl.dropbox.com/u/3688604/file-storage.xar. By the way you need to
have the ModalBox Application installed. The ModalBox application can be
found at
http://code.xwiki.org/xwiki/bin/view/Applications/ModalBoxApplication.
Let
me know if you have any doubt or comment.
On Fri, Aug 20, 2010 at 12:20 AM, Abel Solórzano
Astorga <
abelsolorzano(a)gmail.com> wrote:
> Hi,
>
> I have the application almost working :). I just need to figure out one
> thing that I asked in here. I 'll be glad to share the code with the
> community and with you once it is finish.
>
> Regards,
>
>
> On Tue, Aug 10, 2010 at 1:14 PM, [Ricardo Rodriguez] eBioTIC. <
> ricardo.rodriguez(a)ebiotic.net> wrote:
>
>
>
>> Hi!
>>
>> Abel Solórzano Astorga wrote:
>>
>>
>>> I appreciate you take the time to answer my question. You gave me part
>>>
>>>
>> of
>>
>>
>>> the solution :). The other part is in here
>>>
http://www.mail-archive.com/users@xwiki.org/msg02301.html, in case
>>>
>>>
>> someone
>>
>>
>>> need to do a similar XWiki application.
>>>
>>>
>> Great to know I've been of any help! :-)
>>
>> BTW, have you then manage to get this application working? Are you
>> planning to share it with the community? At least it will be helpful
>>
for
> me to
get fileUploadPlugin or an application allowing to add
> descriptions to the uploaded files. Thanks!
>
> Cheers,
>
> Ricardo
>
> --
> Ricardo Rodríguez
> CTO
> eBioTIC.
> Life Sciences, Data Modeling and Information Management Systems
>
> _______________________________________________
> users mailing list
> users(a)xwiki.org
>
http://lists.xwiki.org/mailman/listinfo/users
>
>
>
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Ricardo Rodríguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems