Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jason 12 posts 33 karma points
    Apr 23, 2010 @ 11:00
    Jason
    0

    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.

  • Tobias Neugebauer 52 posts 93 karma points
    Apr 23, 2010 @ 11:19
    Tobias Neugebauer
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft