Passing infomation from a Document Type property to a Macro property
Hi Guys,
I have created a .NET User Control, that I have added as a Macro. The user control has a property which is a text string.
I have then created a document type with a corresponding Template. In the document type I have added a RichText editor property.
Now what I want to do is to allow the content editor to enter text into this RichText editor, and then have the template pass this on to the macro by setting the value of the RichText editor on the Macro property.
I tried this:
[code]
[/code]
But this of course does not work. The name of the property on the macro is QuestionnaireDone and the name of the property on the document type is questionnaireDone.
Passing infomation from a Document Type property to a Macro property
Hi Guys,
I have created a .NET User Control, that I have added as a Macro. The user control has a property which is a text string.
I have then created a document type with a corresponding Template. In the document type I have added a RichText editor property.
Now what I want to do is to allow the content editor to enter text into this RichText editor, and then have the template pass this on to the macro by setting the value of the RichText editor on the Macro property.
I tried this:
[code]
[/code]
But this of course does not work. The name of the property on the macro is QuestionnaireDone and the name of the property on the document type is questionnaireDone.
Any input on this?
/rasb
After looking closer in the forum, I found this post, and that did the trick:
http://forum.umbraco.org/yafpostst2853Dynamic-Peramiters-for-NET-User-Controls.aspx
/rasb
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.