Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Extending FCK Editor With Custom "Insert Bizform" View modes: 
User avatar
Member
Member
matthys.pienaar-gmail - 12/12/2011 1:41:25 AM
   
Extending FCK Editor With Custom "Insert Bizform"
Hello guys,

I have cloned the bizform webpart and added the OnAfterSave method to send an extra notification depending on the selected dropdown item.

I now want to add an additional "Insert BizForm" button to the FCK toolbar to allow the users to click on that and insert a bizform that has that dropdown. Currently, when I use the original “Insert BizForm” it still works perfectly as a normal bizform should but it obviously ignores my code since, which I presume, it’s not using the modified webpart.

The thing that I can’t figure out when looking at all the code for the current "Insert BizForm" button is where they specify which bizform webpart its using, if that is even the case.

Clearly I am missing something major :)

Your help would be greatly appreciated.

User avatar
Member
Member
kentico_michal - 12/12/2011 3:22:14 AM
   
RE:Extending FCK Editor With Custom "Insert Bizform"
Hello,

The CKEditor in Kentico CMS 6.0 allows you to add any custom control as an inline widget control to the editable area (using the Insert/Edit widget button).

So, I would recommend you to create a new widget based on your custom BizForm web part and add it to the editable region as an inline widget.

For more information, I would like to point you to the following section of Developer's Guide: Inline widgets.

Best regards,
Michal Legen

User avatar
Member
Member
matthys.pienaar-gmail - 12/12/2011 3:50:18 AM
   
RE:Extending FCK Editor With Custom "Insert Bizform"
Thanks for the reply, but it seems that I have mad an error, Ive posted in the 6.x forums instead of the 5.x forums, I only realized this now when I tried your solution...I cant find this option in v5.5.4202 R2. Is it available in that version or are there any work arounds? I will make a new post in the correct forum in the mean time.

Sorry and Thanks :)

User avatar
Member
Member
kentico_michal - 12/12/2011 5:55:46 AM
   
RE:Extending FCK Editor With Custom "Insert Bizform"
Hello,

In that case you will need to create a custom inline control that you can insert using the Insert inline control button on the WYSIWYG editor toolbar, as the Insert BizForm button inserts the default BizForm inline control.

This custom inline control could contain the BizForm control with the OnAfterSave handler just as your custom BizForm web part does.

For more information about developing custom inline controls in Kentico CMS R2, I would like to point you to the following article: How to develop inline controls.

Best regards,
Michal Legen

User avatar
Member
Member
matthys.pienaar-gmail - 12/12/2011 6:17:45 AM
   
RE:Extending FCK Editor With Custom "Insert Bizform"
thanks, you are indeed a gentlemen and a scholar :)