[xwiki-users] Create application similar to attach file application
Hi, I want to create an application similar or based on the attachment panel application at the bottom of the xwiki pages. The application should let the user select the file to upload to the xwiki server and write a description of the file. Then, the file name and description should be automatically added to a table. The first column of the table is the file name, that is a link to the file. The second column of the table is the description of the file. So, the table is like a repository of the files and its respective descriptions. My question is. Is there a macro or code snipped to add a file to the attachment panel application? Regards, Abel
Hi! Abel Solórzano Astorga wrote:
Hi,
I want to create an application similar or based on the attachment panel application at the bottom of the xwiki pages. The application should let the user select the file to upload to the xwiki server and write a description of the file. Then, the file name and description should be automatically added to a table. The first column of the table is the file name, that is a link to the file. The second column of the table is the description of the file. So, the table is like a repository of the files and its respective descriptions. My question is. Is there a macro or code snipped to add a file to the attachment panel application?
I don't understand well your question. It seems to me that could be reduced to how add a comment to an attachment "event" and retrieve it together with the filename. I guess this comment must be linked to each document version, not to the attachment name as this is shared by all the releases of a document. It is easy to get the filenames of the attached files for a page using XML-RPC following this example... http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples#HAttach... Or simply using this code snip (sorry, I don't remember who sent it to me! I'm looking for it in xwiki.org site without success): ***** #set($attachments = $doc.attachmentList) #if($attachments.size()>0) #foreach ($attach in $attachments) <span class="name"><a href="$doc.getAttachmentURL("${attach.filename}", "download")" title="$msg.get("downloadthisattachment")">#packName($attach.filename)</a></span><br> #end #end ***** About how to add a comment to each attachment "event" and retrieve it, sorry, I can't be of any help. I don't now even if this can be easy using the current data model. Now, it is possible to retreive version, size, author and date, but I don't know how to add and retreive a description/comment for each of them. I must recognized that I've been from XWiki development for a while, but I hope this could be helpful for you. Greetings, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
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/[email protected]/msg02301.html, in case someone need to do a similar XWiki application. On Sat, Aug 7, 2010 at 3:01 AM, [Ricardo Rodriguez] eBioTIC. < [email protected]> wrote:
Hi!
Abel Solórzano Astorga wrote:
Hi,
I want to create an application similar or based on the attachment panel application at the bottom of the xwiki pages. The application should let the user select the file to upload to the xwiki server and write a description of the file. Then, the file name and description should be automatically added to a table. The first column of the table is the file name, that is a link to the file. The second column of the table is the description of the file. So, the table is like a repository of the files and its respective descriptions. My question is. Is there a macro or code snipped to add a file to the attachment panel application?
I don't understand well your question. It seems to me that could be reduced to how add a comment to an attachment "event" and retrieve it together with the filename. I guess this comment must be linked to each document version, not to the attachment name as this is shared by all the releases of a document.
It is easy to get the filenames of the attached files for a page using XML-RPC following this example...
http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples#HAttach...
Or simply using this code snip (sorry, I don't remember who sent it to me! I'm looking for it in xwiki.org site without success):
***** #set($attachments = $doc.attachmentList)
#if($attachments.size()>0) #foreach ($attach in $attachments) <span class="name"><a href="$doc.getAttachmentURL("${attach.filename}", "download")"
title="$msg.get("downloadthisattachment")">#packName($attach.filename)</a></span><br> #end #end *****
About how to add a comment to each attachment "event" and retrieve it, sorry, I can't be of any help. I don't now even if this can be easy using the current data model. Now, it is possible to retreive version, size, author and date, but I don't know how to add and retreive a description/comment for each of them.
I must recognized that I've been from XWiki development for a while, but I hope this could be helpful for you.
Greetings,
Ricardo
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
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/[email protected]/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
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. < [email protected]> 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/[email protected]/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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
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 :) ). 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 < [email protected]> 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. < [email protected]> 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/[email protected]/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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
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 < [email protected]> 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. < [email protected]> 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/[email protected]/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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
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 http://www.mail-archive.com/[email protected]/msg04047.html. 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? Let me know if you need something else. Regards, Abel On Thu, Nov 4, 2010 at 2:02 AM, [Ricardo Rodriguez] eBioTIC. < [email protected]> 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 < [email protected]> 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. < [email protected]> 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/[email protected]/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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
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/[email protected]/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/HasAttach... 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. < [email protected]> 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 < [email protected]> 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. < [email protected]> 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/[email protected]/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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
Just one more tip... You must be aware of this discussion and some other initiated by Caleb... http://markmail.org/thread/kexhs7bmww3i35ng I think it would help to understand how attachments work and it will be easy to propose to add the possibility of adding a description to each attached file in the new structure. Hope this helps! Ricardo 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. 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 http://www.mail-archive.com/[email protected]/msg04047.html.
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?
Let me know if you need something else.
Regards,
Abel
On Thu, Nov 4, 2010 at 2:02 AM, [Ricardo Rodriguez] eBioTIC. < [email protected]> 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 < [email protected]> 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. < [email protected]> 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/[email protected]/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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
Than you very much Ricardo, I appreciate your inputs.
Must I been able to edit the description for already attached files?
Yes, you should be able to edit it.
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 tested the application on the xwiki of our company and it works. I am going to test it on a clean installation of xwiki to trobleshoot that issue.
Check this and feel free to test it:
http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/HasAttachment<http://epecnetcore.environmentalchange.net:8080/xwiki/bin/view/ICT/HasAttachment> The application is not working for me. I get "Failed to execute the [groovy] macro" error.
I think it would help to understand how attachments work and it will be easy to propose to add the possibility of adding a description to each attached file in the new structure.
Do you now the official procedure to propose a new feature on xwiki? I am going to work in the things you mentioned (I need to figure out how to use the LightBox component). And after that I am going to create an xwiki page for the macro. Hopefully it can be usefull for somebody else. On Fri, Nov 5, 2010 at 3:05 AM, [Ricardo Rodriguez] eBioTIC. < [email protected]> wrote:
Just one more tip...
You must be aware of this discussion and some other initiated by Caleb...
http://markmail.org/thread/kexhs7bmww3i35ng
I think it would help to understand how attachments work and it will be easy to propose to add the possibility of adding a description to each attached file in the new structure.
Hope this helps!
Ricardo
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. 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 http://www.mail-archive.com/[email protected]/msg04047.html.
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?
Let me know if you need something else.
Regards,
Abel
On Thu, Nov 4, 2010 at 2:02 AM, [Ricardo Rodriguez] eBioTIC. < [email protected]> 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 < [email protected]> 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. < [email protected]> 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/[email protected]/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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Sorry for being late! I've been a bit busy these last few days. Abel Solórzano Astorga wrote:
Than you very much Ricardo,
I appreciate your inputs.
Must I been able to edit the description for already attached files?
Yes, you should be able to edit it.
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 tested the application on the xwiki of our company and it works. I am going to test it on a clean installation of xwiki to trobleshoot that issue.
Check this and feel free to test it:
The application is not working for me. I get "Failed to execute the [groovy] macro" error.
I'm sending you an account in a separate mail to test this application.
I think it would help to understand how attachments work and it will be easy to propose to add the possibility of adding a description to each attached file in the new structure.
Do you now the official procedure to propose a new feature on xwiki?
I am going to work in the things you mentioned (I need to figure out how to use the LightBox component). And after that I am going to create an xwiki page for the macro. Hopefully it can be usefull for somebody else.
I'm seeing a new message sent to the list about ModalBox. To propose a new feature, check these links: http://dev.xwiki.org/xwiki/bin/view/Design/ http://dev.xwiki.org/xwiki/bin/view/UserExperience/ I think the way this information is communicated can be improved.. so, we are free to make a proposal! :-)
On Fri, Nov 5, 2010 at 3:05 AM, [Ricardo Rodriguez] eBioTIC. < [email protected]> wrote:
Just one more tip...
You must be aware of this discussion and some other initiated by Caleb...
http://markmail.org/thread/kexhs7bmww3i35ng
I think it would help to understand how attachments work and it will be easy to propose to add the possibility of adding a description to each attached file in the new structure.
Hope this helps!
Ricardo
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.
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 http://www.mail-archive.com/[email protected]/msg04047.html.
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?
Let me know if you need something else.
Regards,
Abel
On Thu, Nov 4, 2010 at 2:02 AM, [Ricardo Rodriguez] eBioTIC. < [email protected]> 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 < [email protected]> 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. < [email protected]> 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/[email protected]/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 > [email protected] > http://lists.xwiki.org/mailman/listinfo/users > > > >
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
participants (2)
-
[Ricardo Rodriguez] eBioTIC. -
Abel Solórzano Astorga