10 Oct 2008
08 May 2011
Link to this post
I was wondering if I could get a basic sample for of custom field for file upload to add in Products module.
I tried following but did not succeed:
- Creating CustomFieldElement inherting FieldControlDefinitionElement
- Created an interface ICustomFieldDefinition inherting IFieldControlDefinition
- Created CustomFieldDefinition inherting FieldControlDefinition and implementing interface ICustomFieldDefinition
- Finally, created CustomField inherting FieldControl defining my template (.ascx) and script (.js) files path.
But I am unable to make up even a simple basic field in Products module at backend.
I need to upload a file and view already uploaded files in view mode. Can anyone provide me a simple code for custom field control?