Custom auto completed properties? (like umbracoExtension, etc)
How do I add additional label property that can be auto completed upon a file upload?
At the moment, I know that there are umbracoWidth, umbracoHeight, umbracoExtension, etc.
What i'm looking to do is to upload a jpg file. Then automatically fill out some information from the exif part of the jpg image to a few media type properties.
first you need to add a new MediaType under Settings->MediaTypes and specify your auto complete settings as Type "Label".(Or you can extend the existing Types File or Image)
After that you can create a new ActionHandler for that specific DocumentType work out the properties you want to autocomplete and save the values into the Label-Properties.
You could have a look into the umbraco source code @ codeplex to figure this out its quite easy if you know how to do this ;)
Custom auto completed properties? (like umbracoExtension, etc)
How do I add additional label property that can be auto completed upon a file upload?
At the moment, I know that there are umbracoWidth, umbracoHeight, umbracoExtension, etc.
What i'm looking to do is to upload a jpg file. Then automatically fill out some information from the exif part of the jpg image to a few media type properties.
Thanks in advance for any help.
Hi,
first you need to add a new MediaType under Settings->MediaTypes and specify your auto complete settings as Type "Label".(Or you can extend the existing Types File or Image)
After that you can create a new ActionHandler for that specific DocumentType work out the properties you want to autocomplete and save the values into the Label-Properties.
You could have a look into the umbraco source code @ codeplex to figure this out its quite easy if you know how to do this ;)
Here is a link to the source on codeplex
Hope this helps
Toby
is working on a reply...