[MGNLUI-5680] DOC: UploadViewDefinition Created: 24/Feb/20  Updated: 26/Aug/20  Resolved: 25/Aug/20

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2
Fix Version/s: None

Type: Task Priority: Neutral
Reporter: Ashraf Khamis Assignee: Ashraf Khamis
Resolution: Done Votes: 0
Labels: fields, new-UI-framework, new-form
Remaining Estimate: Not Specified
Time Spent: 2m
Original Estimate: Not Specified

Issue Links:
documentation
documents MGNLUI-5656 Improve Upload Field implementation Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Epic Link: M6 UI & UX Improvements
Sprint: UI Framework 21, UI FW 9
Story Points: 3

 Description   

The newly introduced UploadViewDefinition allows:

  • The (DAM) upload field to be configured using custom factoryClass. If no factory class is configured, the default (DAM) upload field will be rendered.
  • The (DAM) upload field to be marked as required and to display a validation error for an empty field.

Java definition class: https://git.magnolia-cms.com/projects/PLATFORM/repos/ui/browse/magnolia-ui-framework/src/main/java/info/magnolia/ui/editor/UploadViewDefinition.java



 Comments   
Comment by Ashraf Khamis [ 25/Aug/20 ]

Added the following tips at the top of these pages:

https://documentation.magnolia-cms.com/display/DOCS62/Upload+field

Use info.magnolia.ui.field.factory.UploadFieldFactory for any custom implementation of the field. If no factory class is configured, the default field will be rendered.

See UploadViewDefinition for more information.

https://documentation.magnolia-cms.com/display/DOCS62/DAM+upload+field

Use info.magnolia.dam.app.field.factory.DamUploadFieldFactory for any custom implementation of the field. If no factory class is configured, the default field will be rendered.

See UploadViewDefinition for more information.

Reviewed by Roman and Rishab.

Generated at Mon Feb 12 09:28:59 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.