Copied to clipboard

Flag this post as spam?

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


  • Henri Toivonen 77 posts 111 karma points
    Dec 04, 2011 @ 18:24
    Henri Toivonen
    0

    Cookie as Macro parameter

    I am having troubles with using cookies as a parameter to a macro. The cookie is there, with a value, i can get the value in the macro itself through Request.Cookies but the Parameter is always null. Is this working properly?

    I'm on Umbraco 4.7.1.

    CP issue here: http://umbraco.codeplex.com/workitem/30630

  • Jeff Kwong 31 posts 51 karma points
    Dec 16, 2011 @ 19:24
    Jeff Kwong
    0

    I'm having the same problem. The macro should return imageNodes but comes up blank.  The Response.Write returns the cookie value.  I can pass strings, page properties, etc. to the macro so that's working fine.

    <umbraco:Macro imageNodes="[%cookie]" Alias="GetLightboxImages" runat="server"></umbraco:Macro>

    <%
                          Response.Write(umbraco.library.RequestCookies("lightbox"));
    %>

  • Henri Toivonen 77 posts 111 karma points
    Dec 16, 2011 @ 19:36
    Henri Toivonen
    0

    Don't forget to vote on codeplex for the issues you feel should be prioritized. :)

  • 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.

Please Sign in or register to post replies