Bug reports Found a bug? Post it here please.
Version 4.x > Bug reports > bug in CMSEditableRegion? View modes: 
User avatar
Member
Member
rookie07 - 8/7/2009 5:54:16 AM
   
bug in CMSEditableRegion?
hi,

i don't know right now if this is a bug but it seems like this. i wanted to create a accordin control with 3 regions. the linktext and the section content should be editable. for this reason i created a webpart like this:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Accordion3.ascx.cs" Inherits="CMSWebParts_Goldburg_Accordion3" %>
<ajaxToolkit:Accordion ID="Accordion1" runat="server" SelectedIndex="-1" FadeTransitions="true"
FramesPerSecond="40" TransitionDuration="250" AutoSize="None" HeaderCssClass="accordionheader" ContentCssClass="accordioncontent" CssClass="accordion">
<Panes>
<ajaxToolkit:AccordionPane ID="AccordionPane1" runat="server">
<Header>
<a href="" onclick="return false;">
<cms:CMSEditableRegion runat="server" ID="CMSEditableRegionLinktext1" RegionTitle="Linktext 1" DialogHeight="24" RegionType="TextBox" />
</a>
</Header>
<Content>
<cms:CMSEditableRegion runat="server" ID="CMSEditableRegionContent1" RegionTitle="Inhalt 1" DialogHeight="320" RegionType="HtmlEditor" />
</Content>
</ajaxToolkit:AccordionPane>
<ajaxToolkit:AccordionPane ID="AccordionPane2" runat="server">
<Header>
<a href="" onclick="return false;">
<cms:CMSEditableRegion runat="server" ID="CMSEditableRegionLinktext2" RegionTitle="Linktext 2" DialogHeight="24" RegionType="TextBox" />
</a>
</Header>
<Content>
<cms:CMSEditableRegion runat="server" ID="CMSEditableRegionContent2" RegionTitle="Inhalt 2" DialogHeight="320" RegionType="HtmlEditor" />
</Content>
</ajaxToolkit:AccordionPane>
<ajaxToolkit:AccordionPane ID="AccordionPane3" runat="server">
<Header>
<a href="" onclick="return false;">
<cms:CMSEditableRegion runat="server" ID="CMSEditableRegionLinktext3" RegionTitle="Linktext 3" DialogHeight="24" RegionType="TextBox" />
</a>
</Header>
<Content>
<cms:CMSEditableRegion runat="server" ID="CMSEditableRegionContent3" RegionTitle="Inhalt 3" DialogHeight="320" RegionType="HtmlEditor" />
</Content>
</ajaxToolkit:AccordionPane>
</Panes>
</ajaxToolkit:Accordion>


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using CMS.PortalControls;
public partial class CMSWebParts_Goldburg_Accordion3 : CMSAbstractWebPart
{
protected void Page_Load(object sender, EventArgs e)
{

}
}


i've added the webpart to the site manager like described in te tutorial. averything worked fine in my test-project. i can easiely update the content in my test project.

but in my 'life' project i'm not able to edit any of the content in the accordion control. it only saves the content of the thrid section and has some odd behaviour. i can't get any differences belonging to the test and life-project. i've also deleted the page and created a new one (which is containing the webpart) - same failure...?

any suggestions?

User avatar
Member
Member
kentico_pavelk - 8/7/2009 6:38:28 AM
   
RE:bug in CMSEditableRegion?
Hello,

I tried it on my machine and it worked well. Do you use it on same or on different sites? You can also try to debug your live project (if possible) to find out where the problem might be.


Best Regards,
Pavel Knotek

User avatar
Member
Member
rookie07 - 8/10/2009 5:00:10 AM
   
RE:bug in CMSEditableRegion?
hi there,

yes it seems to be a configuration-problem or something similar. i installed the wb on 2 more machines an everywhere except my developing-machine it is working well.

seem's that i have to debug...


by the way i installed the kentico cms to use the local web dev webserver, so the installation comes with the port (eg localhost:1469, localhost:1031...). in my project i have serveral images in the media library. when i deploy it to another machine (i just copy the files) i have to run following sql in order to see the images when i'm browsing the site:

UPDATE CMS_Document SET DocumentContent = replace(convert(nvarchar(max),[DocumentContent]), 'http://localhost:1469', 'http://80.120.45.30') WHERE DocumentContent LIKE '%http://localhost:1469%'
UPDATE CMS_Document SET DocumentContent = replace(convert(nvarchar(max),[DocumentContent]), 'http://localhost:1031', 'http://80.120.45.30') WHERE DocumentContent LIKE '%http://localhost:1031%'

so to speak i change the domain, is there a better way to do this?

greetings,
s.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 8/12/2009 6:58:04 AM
   
RE:bug in CMSEditableRegion?
Hi Stefan,

I am afraid that there is no any easier way for links repairing.

Debugging could help. Do you use some different settings in the live server? For example active directory instead of forms for authenticating or Medium trust environment...

Best regards,
Helena Grulichova

User avatar
Member
Member
rookie07 - 8/12/2009 7:09:58 AM
   
RE:bug in CMSEditableRegion?
hi helena,

thanx for the reply.

as far as i know i don't use different konfigurations.

my develop kit is:
winxp prof, kentico 4, sqlserver 2005, vwebdev 2008 both express, asp.net 3.5

could work without problems on laptop:
winxp home, kentico 4, sqlserver2008, vwebdev 2008 both express, asp.net 3.5

could work without problems on live server:
win2003 server, kentico 4, sqlserver 2005, vwebdev 2008 both express, asp.net 3.5

if there will be more time, i'll start to debug *g.

regards,
stefan.