I just figured out that the node ID's change when transferring the site from the production to staging envoirment. The problem with this is dat a lot of XSLT files use the GetXMLbyNodeID function. When the ID's changes the XSLT isn't working. Is there a way to correct this?
I readed that Courier corrects the ID's automaticly, but becease XSLT won't be transferred automaticly the ID's in the XSLT stay the same.
Has anyone have the same problem? And maybe a solution?
It is possible to have a way when we deploy by Umbraco Courier between 2 environments to have the same id's for files img, svg and pdf for maintains the same path for them?
node id's change after transfer
Hi,
I just figured out that the node ID's change when transferring the site from the production to staging envoirment. The problem with this is dat a lot of XSLT files use the GetXMLbyNodeID function. When the ID's changes the XSLT isn't working. Is there a way to correct this?
I readed that Courier corrects the ID's automaticly, but becease XSLT won't be transferred automaticly the ID's in the XSLT stay the same.
Has anyone have the same problem? And maybe a solution?
Kind regards,
Rik
Hi Rik,
What courier does is extract your content from environment A and deploys it to environment B.
As content uses a incrimental integer in the database this can be different for a number of reasons.
Hi Dave,
Thanks for your quick response.
I will try to change the GetXmlNodeById function by normal xpath statements.
Kind regards,
Rik
If you don't get it to work with xpath I recommend storing your id's as appsettings in the web.config.
That way you can easily change it without having different xslt files for each environment that you deploy too.
Dave
It is possible to have a way when we deploy by Umbraco Courier between 2 environments to have the same id's for files img, svg and pdf for maintains the same path for them?
is working on a reply...