05 Sep 2006
22 Feb 2014
Link to this post
I have just a quick, hopefully easily answered question.
How would one go about when wanting to add a custom field to the news module which allows to select a document?
My first thought was to use a custom control which derives from an assetsfield, configuring it to to write mode and single-document. Andadding that as custom field, with short-text by specifying the complete typestring. That seems to work in so far, as the document selector link is available in the edit news item backend and it allows me to choose or upload a document. The problem being it does not save the choose document to the underlying custom field. So when opening the News-Item again, after publishing, the custom field is still empty. When inspecting the generated PUT-Request the custom field contains an empty string.
Is it possible to use the asset field in write-mode to fill a custom field on the news (or event) module, or do I have to build my widget with designer and everything?
Thank you for your support!!