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?
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
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;}
hi karma,
thank you for your rapid answer.
I was able to fix the problem due to your help!
Harald
No probs. Speaking of Karma - you can give me some by marking my earlier post as the answer :-)
Cheers
Barry
hi barry,
ohh, karma is a mistake from me, sorry :-)
Harald
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.