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