On 5 Jun 2014 at 10:44:49, Thomas Mortagne
(thomas.mortagne@xwiki.com(mailto:thomas.mortagne@xwiki.com)) wrote:
On Thu, Jun 5, 2014 at 9:36 AM, vincent(a)massol.net
wrote:
Hi Ram,
On 5 Jun 2014 at 08:40:51, Megrem Lingroar
(gremlinshello@gmail.com(mailto:gremlinshello@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
>