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.
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.
I had some problems uploading files bigger than 16M. So I follow the
suggestions on the following page
.
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?
Let me know if you need something else.
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