Copied to clipboard

Flag this post as spam?

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


  • Mehrdad 8 posts 28 karma points
    Aug 26, 2011 @ 16:21
    Mehrdad
    0

    Send a variable(attribute) froma page to a macro as input

    Hi,

    I have a macro with an input parameter, want to send an attribute like a tag id or tag variable to it. as an example:

    this is my html tag:

    <a id="ContentPlaceHolderDefault_LanguageSwitcher_1_LinkButtonSwitcher" title="Change page language to Swedish" href="javascript:__doPostBack(&#39;ctl00$ctl00$ctl00$ContentPlaceHolderDefault$LanguageSwitcher_1$LinkButtonSwitcher&#39;,&#39;&#39;)">In English</a>

    that itself is a macro as this:

    <umbraco:Macro  Alias="ChangeLanguage" runat="server"></umbraco:Macro>
     and want to send the id of the tag to another macro as this:

    <umbraco:Macro lan="sv" Alias="GetIngress" runat="server"></umbraco:Macro>

    Appreciate if somebody help me.

     

  • 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