Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Editable region but - entered text not visible for non-cms desk users View modes: 
User avatar
Member
Member
joeh42 - 10/7/2011 4:01:53 PM
   
Editable region but - entered text not visible for non-cms desk users
I have an editable region on a custom web part. A CMS editor has gone in and entered some text.

All users can see the web part.

CMS editors have reported that they can see the editable region (including me). It seems like no non-CMS desk users can see the text that was entered into it.

Is this a bug with editable regions? Is there something I'm doing wrong?

I've stepped through the code with the debugger and verified that with a non-CMS desk user the code can find the text within the editable region.

<cms:CMSEditableRegion runat="server" ID="txtopportunities5" RegionTitle="Opportunities for you" DialogWidth="500"
InheritContent="true" DialogHeight="400" RegionType="HtmlEditor" HtmlAreaToolbarLocation="Out:FCKToolbar"/>


Joe Hoppe

User avatar
Member
Member
lancetek - 10/7/2011 7:05:11 PM
   
RE:Editable region but - entered text not visible for non-cms desk users
Try publishing the page? Editors can see the 'preview' version.

User avatar
Member
Member
joeh42 - 10/10/2011 9:07:18 AM
   
RE:Editable region but - entered text not visible for non-cms desk users
If I go into the page properties, then metadata, the page says: "workflow step: published".

Still no luck :(

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/10/2011 10:03:33 AM
   
RE:Editable region but - entered text not visible for non-cms desk users
Hello,

I am not sure, if I understand you setup correctly but the content of editable regions is by default visible to everyone. If you want to personalize the content according to the logged in user please check this link.

Best regards,
Boris Pocatko

User avatar
Member
Member
joeh42 - 10/10/2011 10:18:25 AM
   
RE:Editable region but - entered text not visible for non-cms desk users
Hi Boris,

I have an editable text web part on my custom web part. A CMS editor has gone in and added some custom text. I want the text to be visible to everyone, but it seems like it's only visible to CMS editors or through the CMS desk.

To help isolate the problem, I created a blank page not under workflow. I created a new custom web part. I inserted the code above. I added the web part to the page. I go in through the CMS Desk and can see the editable region. I add some text and click save. As a CMS desk user I can see the text. I can also see it on the live site.

When I log in as a regular user (non-CMS Desk), I go to the page. I can't see the text. I also went back and cleared the cache just to re-assure myself.

What do I need to do to get the text to be visible to everyone?

v5.5.4125 R2

Thanks,
Joe

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/10/2011 11:33:18 AM
   
RE:Editable region but - entered text not visible for non-cms desk users
Just so we all have a little bit more information, could you answer a few questions for us?

Are you adding the content that can't be seen by regular users in the design tab or the page tab?

Have you tried logging in as another CMS desk user to make sure that the content is not only visible by the user who created it? (this isn't very likely, but it eliminates one possibility)

If you can use SQL Management studio to query the data for the page that you placed your content on, can you see the content that you saved stored in the DocumentContent column of the datarow for that page?


User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/10/2011 11:36:36 AM
   
RE:Editable region but - entered text not visible for non-cms desk users
One other question for you.

Can you see the content you put in the web part when clicking the Preview Mode button for the page?

User avatar
Member
Member
joeh42 - 10/11/2011 1:02:43 PM
   
RE:Editable region but - entered text not visible for non-cms desk users
As requested:
- I'm adding the content in the page tab.
- I've logged in as another site admin. The account was able to see the text, but regular accounts still cannot.
- I ran the query:
SELECT [DocumentContent]   FROM [KenticoCMS-Dev].[dbo].[View_CMS_Tree_Joined]
WHERE NodeID = 1844

-which returned:
<content><region id="editabletextheader"><![CDATA[ test2]]></region><region id="txtopportunities5"><![CDATA[ test]]></region></content>


There's the value from my original web part, which I then replaced with this blank test one so that we can isolate the problem.

-I can see the content when I click on the preview button.

I also added text to the 'content before' section, just to verify that the web part is rendering. That part is visible to everyone, but the editable text is only visible to CMS desk users.

What are your thoughts?

User avatar
Certified Developer 8
Certified Developer 8
Jiveabillion - 10/12/2011 2:34:42 PM
   
RE:Editable region but - entered text not visible for non-cms desk users
You've eliminated every issue that I can think of. I'm gonna have to defer this to the Kentico pros.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/13/2011 6:56:54 PM
   
RE:Editable region but - entered text not visible for non-cms desk users
Hello,

I've tried your exact code and it seems to work fine. Have you done any modification in any part of the CMS which could cause this issue?
Was the blank test page completely blank (have you disabled visual inheritance)?
Have you tried to use different browsers?
Additionally, could you please try to apply the latest hotfix for the R2 version?

Best regards,
Boris Pocatko