Copied to clipboard

Flag this post as spam?

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


  • Arjan den Boer 76 posts 31 karma points
    Aug 11, 2009 @ 17:59
    Arjan den Boer
    0

    umbraco.library:ContextKey() not working?

    I'm trying to use umbraco.library:ContextKey() in XSLT, which should display the value of a HttpContext.Current.Items item as far as I understand. But the return value always seems to be empty, even when I set a context item in code elsewhere. Any ideas?

  • Sebastiaan Janssen 5045 posts 15477 karma points MVP admin hq
    Aug 12, 2009 @ 08:17
    Sebastiaan Janssen
    0

    It looks like others have struggled with this as well and the context item is only available after a server transfer. 

    Are you maybe trying to do something like a shopping basket thing? In that case, this thread might help you a bit. 

    I am, however, still curious what the proper way of doing this would be, without having to reach into the core code of Umbraco. It should be sort of trivial to do a shopping basket scenario, right?

Please Sign in or register to post replies

Write your reply to:

Draft