tjadoon-gmail
-
9/3/2010 11:03:46 AM
Inline Control - WYSIWYG Editor
I have created a user control that I will be using inside a WYSIWYG editor. I am following the following tutorial: http://www.kentico.com/docs/devguide/index.html?how_to_develop_inline_controls.htm
When adding the control to Site manager, i have completed all the items except #10 (below). In site manager we have only 2 tabs available, general and sites. I can’t find the “properties” tab. Where can I find this tab?
10. In case that you defined some properties in the control code, you will have to register them on the Properties tab. On the tab, you will find the familiar field editor. Property categories can be created using the New category ( ) icon. New properties can be added using the Add ( ) icon
Also, when using the control, I have to pass the parameter value to it. I am following the following tutorial: http://www.kentico.com/docs/devguide/index.html?inline_controls_overview.htm
In this case all I have to do is pass it like this: %%control:MyControl?myvalue%%
And this will get applied to my property:
public string firstName { get; set; }
and then used as below:
protected void Page_Load(object sender, EventArgs e) { Label1.Text = firstName; }
Thanks
|