I am developing a package for the Umbraco. I extend "Image" media type by a custom tab and "Label" property editors: MyLabel1 and MyLabel2. Also, I have my own table "MyLabels" with columns: ImageId, MyLabel1, and MyLabel2. The question is how to display values from my table when a back-office user opens an image? Can anyone describe a step by step workflow?
If you have the media object, you have access directly there to any fields you enter, it would be similar to how you get any other built-in image property from there.
I know how to setup value for a custom or built-in property. My question is about where I should place this code in case of a custom package? In other words how to extend back-office media or document type loading by custom code.
Label property editor with custom DB data
Hi all,
I am developing a package for the Umbraco. I extend "Image" media type by a custom tab and "Label" property editors: MyLabel1 and MyLabel2. Also, I have my own table "MyLabels" with columns: ImageId, MyLabel1, and MyLabel2. The question is how to display values from my table when a back-office user opens an image? Can anyone describe a step by step workflow?
Thanks in advance
If you have the media object, you have access directly there to any fields you enter, it would be similar to how you get any other built-in image property from there.
Hi John,
I know how to setup value for a custom or built-in property. My question is about where I should place this code in case of a custom package? In other words how to extend back-office media or document type loading by custom code.
is working on a reply...