Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Inline Control - WYSIWYG Editor View modes: 
User avatar
Member
Member
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

User avatar
Member
Member
tjadoon-gmail - 9/3/2010 1:05:22 PM
   
RE:Inline Control - WYSIWYG Editor
WYSIWYG editor in the above thread is editabletext with html webpart.

User avatar
Member
Member
tjadoon-gmail - 9/4/2010 3:21:50 PM
   
RE:Inline Control - WYSIWYG Editor
Hi Kentico,

Any suggestion regarding how i can fix this problem as i dont even see the "properties' tab...

I am using Portal Engine and version 5.5


Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/6/2010 2:24:36 AM
   
RE:Inline Control - WYSIWYG Editor
Hi,

Thank you for letting us know about this issue.
Regrettably, this already known bug in the current version of the documentaion. I'm very sorry for this inconvenience. It is already fixed and new version of documentation will be loaded soon.

How to pass properties in inline controls is described here.

Best regards,
Juraj Ondrus

User avatar
Member
Member
tjadoon-gmail - 9/6/2010 3:32:01 PM
   
RE:Inline Control - WYSIWYG Editor
Hi,

I have already tested this and my parameter doesn't get passed to the control.

%% control:GlobalResourcesControl?DOO %%

control

<asp:Literal ID="litConstant" runat="server" />

public partial class CMSInlineControls_GlobalResourcesControl : CMS.ExtendedControls.InlineUserControl
{

public string ConstantCode { get; set; }

protected void Page_Load(object sender, EventArgs e)
{
litConstant.Text = "SCOBBY " + ConstantCode;
}
}

only Scobby displays...

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 9/7/2010 7:27:56 AM
   
RE:Inline Control - WYSIWYG Editor
Hi,

The InlineUserControl class has a property called Parameter. So you need to add this property to your inline control and override it from the mentioned class and add code to handle your parameters. You can take inspiration e.g. in the Bizforms inline control - \CMSModules\BizForms\InlineControls\BizFormControl.ascx.cs

Best regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
sachin-asentechllc - 10/16/2012 10:33:13 AM
   
RE:Inline Control - WYSIWYG Editor
How can I render the following in my aspx page?

{^youtubevideo|(width)425|(height)264|(border)False|(rel)True|(autoplay)False|(fs)True|(color2)#EFEFEF|(cookies)False|(url)http://www.youtube.com/watch?v=Olv19adOryo|(loop)False|(color1)#666666|(hd)False^}

Thanks and regards,
Sachin

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/17/2012 2:43:00 AM
   
RE:Inline Control - WYSIWYG Editor
Hi,

you can take inspiration from our CTO's blog post.

Best regards,
Juraj Ondrus

User avatar
Certified Developer v7
Certified  Developer v7
sachin-asentechllc - 10/17/2012 4:42:12 AM
   
RE:Inline Control - WYSIWYG Editor
Thanks a lot Juraj.. It has worked for me..

There is one problem with ratings widget. I cant see rating stars. But I can see the ratings result

Current rating: 0 (0 ratings)

Why it has happened like this..? Do you have any solution for it?

Thanks a lot,

Sachin

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 10/18/2012 1:37:51 AM
   
RE:Inline Control - WYSIWYG Editor
Hi,

Could you please apply the latest hotfix? Regrettably there were some bugs in inline controls resolving. sorry for the inconvenience.

Best regards,
Juraj Ondrus