[xwiki-users] Attachements description field
Is there a way to add extra fields to uploaded attachements ? Essentially, a description field Also, can this description be searchable (search results), and would it show in the file manager extension ? Best Ram ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Attachements description field
Hi Ram, On 5 Jun 2014 at 08:40:51, Megrem Lingroar (gremlinshe...@gmail.com(mailto:gremlinshe...@gmail.com)) wrote: Is there a way to add extra fields to uploaded attachements ? Essentially, a description field Short answer is no. Longer answer: Ït seems Attachments can have a “comment” from what I see in the source code. All that’s missing is a UI to set it and that’s modifiable by editing the proper *.vm files from your templates/ or skin directories. It’s actually something that we could expose since we support it at the storage level. Also, can this description be searchable (search results), It could be added to the SOLR index I guess (if it’s not already). Marius? and would it show in the file manager extension ? I have no idea, I don’t know how this extension works. Thanks -Vincent Best Ram ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Attachements description field
On Thu, Jun 5, 2014 at 9:36 AM, vinc...@massol.net vinc...@massol.net wrote: Hi Ram, On 5 Jun 2014 at 08:40:51, Megrem Lingroar (gremlinshe...@gmail.com(mailto:gremlinshe...@gmail.com)) wrote: Is there a way to add extra fields to uploaded attachements ? Essentially, a description field Short answer is no. Longer answer: Ït seems Attachments can have a “comment” from what I see in the source code. This comment is actually supposed to be a save comment (exactly like the one you have in document) so not sure it's exactly what is asked here. All that’s missing is a UI to set it and that’s modifiable by editing the proper *.vm files from your templates/ or skin directories. It’s actually something that we could expose since we support it at the storage level. Also, can this description be searchable (search results), It could be added to the SOLR index I guess (if it’s not already). Marius? and would it show in the file manager extension ? I have no idea, I don’t know how this extension works. Thanks -Vincent Best Ram ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Attachements description field
On 5 Jun 2014 at 10:44:49, Thomas Mortagne (thomas.morta...@xwiki.com(mailto:thomas.morta...@xwiki.com)) wrote: On Thu, Jun 5, 2014 at 9:36 AM, vinc...@massol.net wrote: Hi Ram, On 5 Jun 2014 at 08:40:51, Megrem Lingroar (gremlinshe...@gmail.com(mailto:gremlinshe...@gmail.com)) wrote: Is there a way to add extra fields to uploaded attachements ? Essentially, a description field Short answer is no. Longer answer: Ït seems Attachments can have a “comment” from what I see in the source code. This comment is actually supposed to be a save comment (exactly like the one you have in document) so not sure it's exactly what is asked here. Indeed, my bad… So one solution you have is to create an AttachmentClass xclass in your wiki with all the additional metadata you wish to have and have an xproperty in it that points to the attachment reference. Then you can add a UI to create this xclass automatically when you add an attachment. And you can create a new Suggest Source that indexes these xobjects. Thanks -Vincent All that’s missing is a UI to set it and that’s modifiable by editing the proper *.vm files from your templates/ or skin directories. It’s actually something that we could expose since we support it at the storage level. Also, can this description be searchable (search results), It could be added to the SOLR index I guess (if it’s not already). Marius? and would it show in the file manager extension ? I have no idea, I don’t know how this extension works. Thanks -Vincent Best Ram ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users