Copied to clipboard

Flag this post as spam?

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


  • Rafael Gimeno 16 posts 99 karma points c-trib
    Aug 29, 2016 @ 13:04
    Rafael Gimeno
    0

    Problem with node ID's and media

    Hi!

    I have a question. I have 2 environments (development & live) and when I put images on one environment (live for example) and after I restore them on the other, the src of the images are pointing to different ID's. Then, on development environment, I can't see the images. Can you help me please?

    Regards!

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Aug 29, 2016 @ 20:50
    Alex Skrypnyk
    0

    Hi Rafa,

    What do you mean the src of images are pointing to different IDs?

    How do you render src?

    Thanks,

    Alex

  • Rafael Gimeno 16 posts 99 karma points c-trib
    Aug 30, 2016 @ 09:21
    Rafael Gimeno
    1

    Hi Alex,

    For example, to obtain the image of the logo:

    @Umbraco.Media(home.logo.ToString()).Url
    

    My scenario is:

    • Live environment.
    • Deployment environment.

    Each environment has their database and every node (including media nodes) has their ID, and are different between both environments. Then, I've restored Live environment on Development environment (from the Umbraco admin of the Development environment, on UAAS) and all works right but the IDs of the nodes are different and I canĀ“t see the images uploaded on the Live environment.

    Regards!

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Aug 30, 2016 @ 09:53
    Alex Skrypnyk
    1

    Hi Rafa,

    Maybe problem with cache? I had similar problem, but fixed after rebuplish development environment. Because Umbraco helper works with xml cache on the disk and it can containt old ids.

    Thanks,

    Alex

  • Rafael Gimeno 16 posts 99 karma points c-trib
    Aug 30, 2016 @ 10:08
    Rafael Gimeno
    0

    Hi Alex,

    I've republished the entire site and It doesn't worked.

    It makes sense in part because the ids are not the same and nodes are referencing images with different ids between them, but I find it strange because then I don't see the sense of working with several environments with Umbraco as a service.

    Thanks!

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Aug 30, 2016 @ 10:26
    Alex Skrypnyk
    0

    It's really strange, we have different ids too, but after restore everything is working fine.

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Aug 30, 2016 @ 14:54
    Alex Skrypnyk
    0

    It looks like restoring wasn't successful, try to ask HQ inside Umbraco as a Service admin part.

  • Rafael Gimeno 16 posts 99 karma points c-trib
    Aug 30, 2016 @ 15:02
    Rafael Gimeno
    1

    I'm already in contact with the HQ of UAAS, I'll update this thread if there's any new o with the solution.

    Thank you very much anyway, Alex.

  • Martin 278 posts 662 karma points
    Nov 14, 2016 @ 09:47
    Martin
    0

    Hi Rafa,

    Any joy with the media node ids?

    Martin

  • Rafael Gimeno 16 posts 99 karma points c-trib
    Nov 18, 2016 @ 14:33
    Rafael Gimeno
    0

    Hi Martin,

    The problem was that Umbraco Cloud has a problem with the images of a property Nested Content. I think that is not solved.

    Regards.

  • Comment author was deleted

    Nov 18, 2016 @ 15:01

    @Rafa are you using the data resolvers for Nested Content?

  • Rafael Gimeno 16 posts 99 karma points c-trib
    Nov 26, 2016 @ 17:16
    Rafael Gimeno
    0

    No. What are the data resolvers?

Please Sign in or register to post replies

Write your reply to:

Draft