ASPX templates
Version 6.x > ASPX templates > How can i use EditableText webpart in my custom webpart View modes: 
User avatar
Member
Member
ranjan.kumar-thepsi - 11/9/2011 2:28:13 AM
   
How can i use EditableText webpart in my custom webpart
How can i use EditableText webpart in my custom webpart?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/9/2011 6:04:34 AM
   
RE:How can i use EditableText webpart in my custom webpart
Hello.

EditableText web part is located in /CMSWebParts/Text/editabletext.ascx. You can register this control within your custom web part and use it then according to following example:

<%@ Register Src="~/CMSWebParts/Text/editabletext.ascx" TagName="EditableText"
TagPrefix="cms" %>

<cms:EditableText runat="server" ID="Text" (...) />


Best Regards,
Radek Macalik

User avatar
Member
Member
ranjan.kumar-thepsi - 11/9/2011 7:39:18 AM
   
RE:How can i use EditableText webpart in my custom webpart
In Kentico version 6.0, it is giving error


[NullReferenceException: Object reference not set to an instance of an object.]
CMS.PortalControls.CMSAbstractEditableWebPart.LoadContent(PageInfo pageInfo, Boolean forceReload) +88
CMS.PortalControls.CMSAbstractEditableWebPart.LoadContent(PageInfo pageInfo) +43
CMS.PortalControls.CMSPagePlaceholder.LoadRegionsContent(Boolean loadChildren) +186
CMS.PortalControls.CMSPagePlaceholder.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Control.LoadRecursive() +146
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/10/2011 3:38:53 AM
   
RE:How can i use EditableText webpart in my custom webpart
Hello.

I am able to reproduce this issue. I did submit is to our dev guys and we will investigate it. I will send you an update when I know anything new. Thank you for your patience.

Best Regards,
Radek Macalik

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/18/2013 7:25:34 AM
   
RE:How can i use EditableText webpart in my custom webpart
Hello.

This bug has been hotfixed in hotfix no. 6.0.5.

Best Regards,
Radek Macalik