Copied to clipboard

Flag this post as spam?

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


  • Damon 217 posts 287 karma points
    Mar 07, 2016 @ 10:50
    Damon
    0

    Help - ids of media items different after publishing to different server

    Hi,

    I am creating images on UAT and then publishing to live. The images arrive on live fine but the problem is they end up with different ids. Therefore, the macro within rich text fields that is used to display a multiple image carousel is not picking up the images.

    What is the solution to this problem?

    Thanks for any info!

  • Jeroen Breuer 4861 posts 12130 karma points MVP 3x admin c-trib
    Mar 08, 2016 @ 07:57
    Jeroen Breuer
    100

    Hello,

    Because the ids are integers and incremental it means they can't be the same of different servers. You could create a new media item on another server which could have the same id. So Courier uses GUIDs and after moving content to another server it will have new ids.

    So in your code don't reference to hard coded ids.

    Jeroen

  • MuirisOG 378 posts 1276 karma points
    Nov 24, 2016 @ 10:55
    MuirisOG
    0

    Jeroen

    is there a way to switch off this behaviour, e.g. in the courier.config file, and just copy data as is, including Ids, from Staging to Production?

Please Sign in or register to post replies

Write your reply to:

Draft