Copied to clipboard

Flag this post as spam?

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


  • Uriel Antonio Sánchez 6 posts 87 karma points
    19 days ago
    Uriel Antonio Sánchez
    0

    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

    enter image description here

    As you can see, the second line is looking for the "Icon" property and it returns the following:

    enter image description here

    So apparently there is no problem, but when I try to access the property "Value" it marks the following.

    enter image description here

    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:

    enter image description here

    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.

Please Sign in or register to post replies

Write your reply to:

Draft