Hard Coded NodeById() in Razor not changing Id's on Transfer
On transfer of package or individual items, any usage of nodeById() in Razor scripts files is not picked up and handle by Courier. Thus on arrival at the other end the ID's do not correspond to the correct nodes
Courier 2.6 Umbraco 4.7.2
Anyone help, not sure if this is a bug or we are coding incorrectly!
Currently Courier cannot pick these kind of things, its practicly impossible to analyse what is in your razor code and convert that to proper IDs
You can either pass the id as a paramter on the macro, then courier will see it, change the hardcoded id into a xpath query, or have all those Ids in a central config file you could maintain, I would obviously go for the second option
Hard Coded NodeById() in Razor not changing Id's on Transfer
On transfer of package or individual items, any usage of nodeById() in Razor scripts files is not picked up and handle by Courier. Thus on arrival at the other end the ID's do not correspond to the correct nodes
Courier 2.6
Umbraco 4.7.2
Anyone help, not sure if this is a bug or we are coding incorrectly!
Hi Simon
Currently Courier cannot pick these kind of things, its practicly impossible to analyse what is in your razor code and convert that to proper IDs
You can either pass the id as a paramter on the macro, then courier will see it, change the hardcoded id into a xpath query, or have all those Ids in a central config file you could maintain, I would obviously go for the second option
/per
is working on a reply...