Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Getting content from Editable Text using Repeater View modes: 
User avatar
Member
Member
Joseph - 10/26/2012 1:26:28 PM
   
Getting content from Editable Text using Repeater
I am trying to create a mobile site for a client by following this guide. It mentions that "the content of the page is loaded by the Repeater dynamically from the Editable text on the main Home page." Could someone kindly explain how to set this up? I have been Googling all day with no luck. Thanks!

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/28/2012 5:44:15 AM
   
RE:Getting content from Editable Text using Repeater
Hi,

it would be better if you upgraded at 6.0 or 7.0 version. The upgrade should be available in few days.

In these versions is a better support for mobile sites, advanced web parts, etc. You can find a detailed tutorial on mobile site development.

Best regards,
Ivana Tomanickova


User avatar
Member
Member
Joseph - 10/29/2012 7:36:22 AM
   
RE:Getting content from Editable Text using Repeater
Thanks, but I really have no say in upgrading...I'm just a low man on the totem pole developer who was asked to set this up. If it were my choice, by all means I'd upgrade. My guess is that the client doesn't want to spend the money or some other political BS.

User avatar
Member
Member
Joseph - 10/29/2012 10:24:56 AM
   
RE:Getting content from Editable Text using Repeater
I looked at that doc again (I had already seen it) and it does not answer my question. I just want a clarification of what that article I was linking to said.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 10/31/2012 10:26:59 AM
   
RE:Getting content from Editable Text using Repeater
Hi,

In this case I will answer your original question. But maybe tell your client that support of many new devices (which did not exist when 5.5 version was released) was added in 7.0 versions. It means they are not supported. I mean a redirection on this devices is not working in 5.5.

As for your question. If you take a look at the screenshot from the documentation you will see the Home document on the main site and Home document in the mobile section.

In the mobile version of Home page is inserted a repeater web part with a transformation configured to:

<%# GetEditableValue("wC") %>

*wC is a code name of editable text control inserted on the main Home page.

I hope it makes sense.

If you decided to develop a mobile version of site I suggest you to watch webinar about responsive design. It may be useful for you:
responsive design webinar

Best regards,
Ivana Tomanickova

User avatar
Member
Member
Joseph - 11/1/2012 9:26:54 AM
   
RE:Getting content from Editable Text using Repeater
Awesome! I will try that code; thanks!

User avatar
Member
Member
Joseph - 11/2/2012 10:52:00 AM
   
RE:Getting content from Editable Text using Repeater
Ok, I put that piece of code into a transformation (under the Root document type), and pointed it to the ID of the EditableText region on the page that I want to get. I then added a repeater to the mobile page, set its path to the corresponding regular page, and set the transformation to the new one that I created. Now I am getting this error:

'CMS.Controls.CMSRepeater' does not contain a definition for 'IsSelected'

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 11/3/2012 3:37:25 PM
   
RE:Getting content from Editable Text using Repeater
Hi Joseph,

I don't know which version are you exactly running. But it seems that there is some inconsistence in dll files. Coul you please apply the latest hotfix for your version?

You can find it on our website: Hotfixes

Best regards,
Martin Danko