I'm getting my content of type "Portal" and there I go without any problem. My contents of type "Portal" have several properties, among them are: Name of the portal, Description, contact mailbox, among others.
My problem is when I want to access the property "icon" that is obviously an image and that brings the url of it.
This is my initial code
As you can see, the second line is looking for the "Icon" property and it returns the following:
So apparently there is no problem, but when I try to access the property "Value" it marks the following.
I already try to deserialize the object with JSON but it shows almost the same code with the variants that now shows me the following error:
I do not know why this happens. Could someone give me some guidance on how to deal with 'Media' type objects? or mention that I am doing wrong and how should I do it.
I thank you in advance for your time, and excuse me my English.
Can't access media property icon
Hi all,
I'm getting my content of type "Portal" and there I go without any problem. My contents of type "Portal" have several properties, among them are: Name of the portal, Description, contact mailbox, among others.
My problem is when I want to access the property "icon" that is obviously an image and that brings the url of it.
This is my initial code
As you can see, the second line is looking for the "Icon" property and it returns the following:
So apparently there is no problem, but when I try to access the property "Value" it marks the following.
I already try to deserialize the object with JSON but it shows almost the same code with the variants that now shows me the following error:
I do not know why this happens. Could someone give me some guidance on how to deal with 'Media' type objects? or mention that I am doing wrong and how should I do it.
I thank you in advance for your time, and excuse me my English.
is working on a reply...