General - .NET User Groups General issues with editing, development and graphic design.
Kentico CMS for .NET User Groups > General - .NET User Groups > fck editor in module View modes: 
User avatar
Member
Member
gneuts-gmail - 9/22/2008 7:46:40 AM
   
fck editor in module
How do I use the fck editor in a module?

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/22/2008 8:07:08 AM
   
RE:fck editor in module
Hi,

You could use a CMSEditableRegion control – please see here: http://devnet.kentico.com/docs/controls/cmseditableregion.htm for more information.

If you would need to know something else, please let us know.

Best regards,
Helena Grulichova

User avatar
Member
Member
gneuts-gmail - 9/22/2008 8:26:47 AM
   
RE:fck editor in module
Is there an example on usage of this control?

It says I need a CMSPageManager in the same page, but this code does not work:
<cms:CMSPageManager runat="server" ID="p" />
<cms:CMSEditableRegion runat="server" ID="ed" DialogHeight="400" DialogWidth="500" HtmlAreaToolbar="default" RegionType="HtmlEditor" />

I might be doing it wrong. My goal is to create a document and several links to that document based on my own form (within my module).

User avatar
Kentico Support
Kentico Support
kentico_radekm - 9/23/2008 6:01:31 AM
   
RE:fck editor in module
Hello,

since you are using CMSPageManager and CMSEditableRegion controls, i suppose you are using aspx templates. In this case, I would like to recommend you to read our Developer' s Guide (http://devnet.kentico.com/docs/devguide/index.html), chapter Development with ASPX page templates. Sspecially this: http://devnet.kentico.com/docs/devguide/creating_a_new_aspx_page_templ.htm

You do not need to have CMSPageManager on every page with CMSEditableRegion. If you have CMSPageManager in your master page template, then on pages, which inherits from this master page, you use only CMSEditableRegion.

You can see many examples if you go to <Your web-project folder>/CMSTemplates/CorporateSiteASPX and examine those pages. E.g. you can examine root.master page for CMSPageManager example and Home.aspx, where are 3 CMSEditableRegions used, without CMSPageManager (its in their master page).

I believe this will give you clear picture of how it works.

As far as FckEditor 2.x control, I believe that you will find all necesarry info about this control here: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide. Important chapter is how to use FCKEditor in your ASP.NET web pages. There is also sample code. Please see: http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/Integration/ASP.NET

Please, do not forget about Kentico CMS Controls overview (http://devnet.kentico.com/docs/controls/index.html), where you can find many useful informations about particular CMSControls.

Maybe you find useful info to your goal also here: http://devnet.kentico.com/docs/devguide/developing_form_controls.htm

Best Regards,
Radek Macalík

User avatar
Member
Member
Geert - 9/23/2008 7:48:41 AM
   
RE:fck editor in module
Hello,

I made a form control that allows me a multiple date selection in a calendar. This control is now added to the document type field list and it works nice.

My site has a date based structure, for example:
- /2008/09/26/something.aspx
- /2008/09/27/something.aspx (linked document to the first)
- /2008/09/29/something.aspx (linked document to the first)

Because structure management would be difficult (many somethings for many dates), I decided to build a custom module that takes care off this. I am trying to use the CMSForm control. This control generates the form perfectly, but it crashes when I switch to Update mode. Is there any information on this control and how to use it? This control is not mentioned in the formcontrols manual.

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 9/23/2008 11:00:57 AM
   
RE:fck editor in module
Hello,
this control is not supposed to be used by developer's. It's one of the controls we use to create Kentico user interface, so there isn't any public documentation for this control.

Best Regards,
Zbysek Nemec

User avatar
Kentico Developer
Kentico Developer
kentico_zbysekn - 9/23/2008 11:13:41 AM
   
RE:fck editor in module
Hello,
Little update, best example of using CMSForm control is in file CMSDesk/Content/Edit.aspx, so you can get some inspiration there.
If you will have problem with using this control, send us the code you are using to investigation.

Best Regards,
Zbysek Nemec