|
|
Rank: Aficionado
Joined: 7/19/2006 Posts: 182 Location: Pittsburgh, Pennsylvania, USA
|
I created a usercontrol with a public property of type string and then created an umbraco macro using the control. When insterting the macro, the interface shows a listbox instead of a textbox to set the property value. Why isn't it a textbox?
Thanks
Jason
|
|
 Rank: Addict
Joined: 2/19/2007 Posts: 825 Location: Belgium
|
In the developer section, you can set the macro parameters, so for a textbox you need to set your parameter type to text
Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
|
|
Rank: Aficionado
Joined: 7/19/2006 Posts: 182 Location: Pittsburgh, Pennsylvania, USA
|
Doh!! :blush: I didn't realize I could set parameter options on that tab with a C# macro but I use it all the time with xslt macros. Thanks.
Jason
|
|
 Rank: Addict
Joined: 3/17/2008 Posts: 982 Location: Nyborg, Denmark
|
When you have a .net control there should actually be a button called "Browse public properties". You can simply click this and a new window opens with available public properties on your control. Then you can select which one you want mapped. Please notice that you'll need to go to the parameter tab afterwards and map them to the correct types.
Jeeeez, did I really start this :-)
|
|
Rank: Aficionado
Joined: 7/19/2006 Posts: 182 Location: Pittsburgh, Pennsylvania, USA
|
Thanks Neils....I'm good to go!
Jason
|
|
|
Guest |