Hi Alex,
Thank you for your help,
sorry, I think my question wasn't clear...
I'm creating a custom property type editor called 'VR' and I want this custom property type to show an image form the same content page in the backoffice .
Are you trying to create a property type that shows all the images on the page in the backoffice?
Or do you want to show the images picked in the mediapicker in a view?
The second option is answered by Alex but if I read your question I think you mean option one?
yes Frans you are right,
I think my question wasn't clear... I'm creating a custom property type editor called 'VR' and I want this custom property type to show an image form the same content page in the backoffice.
Properties of the same page are completely isolated, one should not know about another one... whilst it would be possible to fetch data from another property, it's just not how it should work.
Can't you create a custom property editor that has both image and whatever other info you want manage (together) as a single property?
Create a property editor that displays some current page property values
Hi,
I'm trying to create a custom property editor that shows images from the current page... is there a way to do that ???
can someone help me.
Hi
Yes, it's super easy
What property editor do you use for image-picking?
Alex
Media Picker.
Code example:
Read more about Media picker in docs - https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/Built-in-Property-Editors/Media-Picker2
Hi Alex, Thank you for your help, sorry, I think my question wasn't clear... I'm creating a custom property type editor called 'VR' and I want this custom property type to show an image form the same content page in the backoffice .
thanks again. Rihab
Are you trying to create a property type that shows all the images on the page in the backoffice? Or do you want to show the images picked in the mediapicker in a view?
The second option is answered by Alex but if I read your question I think you mean option one?
yes Frans you are right, I think my question wasn't clear... I'm creating a custom property type editor called 'VR' and I want this custom property type to show an image form the same content page in the backoffice.
Thanks. Rihab.
any idea guys?
I would start with this guide:
https://our.umbraco.com/Documentation/Tutorials/Creating-a-Property-Editor/
You could tailor the assetservice to get the image you want to show.
There is no out of the box solution I'm afraid...
Hi,
Properties of the same page are completely isolated, one should not know about another one... whilst it would be possible to fetch data from another property, it's just not how it should work.
Can't you create a custom property editor that has both image and whatever other info you want manage (together) as a single property?
that's actually a good idea...... i'll try it.
Thanks Dirk.
is working on a reply...