Just curious : wasn't that's how it was used in Umbraco previous of v4 ? I remember reading something like that in really old forum posts. In Python I never used anything else but directly as print MyMacroParameter. Btw, just Session["args"] works fine to get the Session-object. Just as Request["nnn"] gets querystring and form post values.
Access Macro Parameters in Razor Script
Here's how I did it in IronPython:
How's it done in Razor scripts?
It should be exactly the same:
Or just:
I don't see any macro parameters by the way, but to access them, have a look at this topic.
Just curious : wasn't that's how it was used in Umbraco previous of v4 ? I remember reading something like that in really old forum posts. In Python I never used anything else but directly as print MyMacroParameter. Btw, just Session["args"] works fine to get the Session-object. Just as Request["nnn"] gets querystring and form post values.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion