[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
Hi Ram, On 5 Jun 2014 at 08:40:51, Megrem Lingroar ([email protected](mailto:[email protected])) 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
On Thu, Jun 5, 2014 at 9:36 AM, [email protected] <[email protected]> wrote:
Hi Ram,
On 5 Jun 2014 at 08:40:51, Megrem Lingroar ([email protected](mailto:[email protected])) 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 [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Thomas Mortagne
On 5 Jun 2014 at 10:44:49, Thomas Mortagne ([email protected](mailto:[email protected])) wrote:
On Thu, Jun 5, 2014 at 9:36 AM, [email protected] wrote:
Hi Ram,
On 5 Jun 2014 at 08:40:51, Megrem Lingroar ([email protected](mailto:[email protected])) 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
participants (3)
-
Megrem Lingroar -
Thomas Mortagne -
vincent@massol.net