Copied to clipboard

Flag this post as spam?

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


  • Simon Tompsett 8 posts 28 karma points
    Jun 15, 2012 @ 13:03
    Simon Tompsett
    0

    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!

  • Per Ploug 865 posts 3491 karma points MVP admin
    Jun 21, 2012 @ 13:59
    Per Ploug
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft