Copied to clipboard

Flag this post as spam?

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


  • Robin Hansen 135 posts 368 karma points
    Oct 22, 2012 @ 13:19
    Robin Hansen
    0

    Using CookieValueKey in a macro v4.7.1

    According this link it's possible to set a value in a Macro from a Cookie: http://our.umbraco.org/documentation/v480/Reference/Templating/Masterpages/#umbracomacro

    The script below shows my attempt to send a cookie value to a Macro - with no luck - is this even possible in Umbraco v4.7.1 the way I try...?

    From Documentation
    CurrentPage property value: [#propertyAlias] Recursive value: [$propertyAlias] Cookie value: [%cookieValueKey] Value from request collection: [@requestValueKey]
    <script type="text/javascript" src="/scripts/jquery.cookie.js"></script>
    <script>
    var COOKIE_NAME = 'adServingKeywords';
    $go = $.cookie(COOKIE_NAME);
    if ($go == null) {
    $.cookie("adServingKeywords", "travel")
    }
    </script>

    <umbraco:Macro adspaceid="56" keywords="[%adServingKeywords]" Alias="adServing.Wallpaper" runat="server" />

     

  • Robin Hansen 135 posts 368 karma points
    Oct 30, 2012 @ 14:40
    Robin Hansen
    0

    *bump*

  • Robin Hansen 135 posts 368 karma points
    Nov 09, 2012 @ 10:51
    Robin Hansen
    0

    FYI

    This seems to be a bug in versions 4.7.x prior to ver. 4.7.1.1... - which means from 4.7.1.1 and forward this works nicely...

    (Tested on ver: 4.7.0 - 4.7.1 - 4.7.1.1 - 4.7.2)

Please Sign in or register to post replies

Write your reply to:

Draft