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.
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.
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!
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
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?
is working on a reply...