Copied to clipboard

Flag this post as spam?

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


  • harald 7 posts 27 karma points
    Dec 02, 2011 @ 13:08
    harald
    0

    macro with parameters

    hi,

    i work short time with umbraco.
    I need to work for my umbraco a macro.

    I want to use a macro in Umbraco. It is important that the parameters from the website will be handed over to the macro. How can I write it in the macro so it applies to the handover parameters?

    see here, too:
    code in umbraco
    http://hand4you.com/images/macro_1.png

    code in the macro-programm
    http://hand4you.com/images/macro_2.png

    sorry, my english is not the best.

    harald

  • Barry Fogarty 493 posts 1129 karma points
    Dec 02, 2011 @ 13:29
    Barry Fogarty
    0

    Hi Harald,

    Check out this tutorial video

    Basically you need to create a parameter on your macro (however I would pick a more descriptive name than 'Value')

    Then to hook it up with your usercontrol you create a public property in the codebehind that matches your name of the parameter:

    public string Value {get; set;}

  • harald 7 posts 27 karma points
    Dec 02, 2011 @ 14:23
    harald
    0

    hi karma,

    thank you for your rapid answer.

    I was able to fix the problem due to your help!

     

    Harald 

  • Barry Fogarty 493 posts 1129 karma points
    Dec 02, 2011 @ 14:27
    Barry Fogarty
    0

    No probs.  Speaking of Karma - you can give me some by marking my earlier post as the answer :-)

    Cheers

    Barry

  • harald 7 posts 27 karma points
    Dec 02, 2011 @ 16:51
    harald
    0

    hi barry,

    ohh, karma is a  mistake from me, sorry :-)

     

    Harald 

  • 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