usercontrol public property Options
jason
Posted: Sunday, April 29, 2007 2:08:12 AM
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
tim
Posted: Sunday, April 29, 2007 12:23:20 PM

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
jason
Posted: Sunday, April 29, 2007 12:28:10 PM
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
hartvig
Posted: Sunday, April 29, 2007 11:11:54 PM

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 :-)
jason
Posted: Monday, April 30, 2007 4:23:56 PM
Rank: Aficionado

Joined: 7/19/2006
Posts: 182
Location: Pittsburgh, Pennsylvania, USA
Thanks Neils....I'm good to go!

Jason
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.