Portal Engine Questions on portal engine and web parts.
Version 4.x > Portal Engine > Merge webpart into another webparts View modes: 
User avatar
Member
Member
gary.chan-e-crusade - 4/5/2009 10:20:32 PM
   
Merge webpart into another webparts
Hi,

I would like to merge a webpart into another one,but it is difficult for me to start with.
let's use editableimage and editabletext as an example, do i need to change ascx file or ascx.cs so as to merge them together? I have read the development guide and it seems no this level information.

Thanks

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 4/16/2009 9:13:19 AM
   
RE:Merge webpart into another webparts
Hello,

Unfortunately, this feature is not natively supported so you will need to ensure it by yourself. I would recommend creating new web part (http://www.kentico.com/docs/devguide/modifying_the_code_of_standard_web_parts.htm).
In this web part you will need to "merge" the code from code-behind of editableimage and editabletext web parts. You will also need to implement custom GetContent and LoadContent method so they will store values from both image and region within one <webpart id="contenttext"> ... </webpart> section in DocumentContent column in CMS_Document table (you can inspire by existing records to see how values from editable regions and editable images are stored in this column).

Best Regards,

Martin Dobsicek

User avatar
Member
Member
gary.chan-e-crusade - 5/25/2009 4:54:39 AM
   
RE:Merge webpart into another webparts
Thanks for suggestion