PlugInProperty

Vote:
 

Hi,

I have created some properties. When I trying get this value it's return empty. but in the Plugion Manager has value. 

[PlugInProperty(Description = "License Key", AdminControl = typeof(TextBox), AdminControlValue = "Text")]
public string LicenseKey { get; set; }

Episerver 7.1, I need this value on my gadget.

#75985
Oct 15, 2013 4:50
Vote:
 

What are you trying to do? Build a gadget?

#75986
Oct 15, 2013 7:26
Vote:
 

I have a Gadget.

I created a class to configure some properties. ( CMS > Admin > Tool Settings > Plug-in Manager > myClass ) I can save this information, but I don't know who I get this information. Because I have a Gadget and not a Page or Control. 

#76109
Oct 17, 2013 4:55
Vote:
 

You mean how to retrieve those settings in your gadgets action method? 

var myPluginClass = new MyPluginClass();

PlugInSettings.AutoPopulate(myPluginClass);

myPluginClass.LicenseKey;

Frederik    

#77082
Nov 07, 2013 16:35
Vote:
 

Thank you Frederik

#77093
Nov 08, 2013 0:12
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.