AEM 6.0, no content in editor.html window
Asked Answered
H

3

5

I have recently migrated a development site from AEM 5.6 to 6.0. When I click on the edit icon, in the Touch UI mode, a blank page loads with no UI. A sample Url in this mode looks like this: localhost:4502/editor.html/content/mypage.html

If I switch the url to the Classic content finder, my page and all of its content shows: localhost:4502/cf#/content/mypage.html

If I click on page properties, this URL loads and it is completely stripped of styling, is a long list of links for the AEM UI, including my user settings - but no page settings. localhost:4502/libs/wcm/core/content/sites/properties.html/content/mypage

Has anyone experienced this? Does the editor.html (Touch UI) require a different set of permissions or page properties that cf# (Classic UI) does not?

Horehound answered 2/2, 2015 at 22:7 Comment(1)
For the Touch UI you need an additional dialog. They are not compatible as the classic uses ExtJS for the widgets and the Touch UI uses Coral: docs.adobe.com/docs/en/aem/6-0/develop/the-basics/… Though I am surprised that not even the page is shown in your case. Maybe check for JavaScript errors...Bemoan
L
9

Make sure that your page component's sling:resourceSuperType is set to /foundation/components/page. It will inherit both dialog and cq:dialog. That will most likely solve both the editor.html and page properties issues.

Lacerta answered 3/2, 2015 at 19:6 Comment(1)
Thank you, Robby! This appears to have fixed my problem -- I can now get to my site in the editor.html mode and also load my page properties. I overlooked this setting in my page component. It's good to see that foundation components may also cover both dialogs!Horehound
K
2

There is slight change as per the AEM 6.1. Make sure that your page component's sling:resourceSuperType is set to wcm/foundation/components/page. You need to add this property to page component. It will inherit both dialog and cq:dialog. That will most likely solve both the editor.html and page properties issues. Hope it resolves!

Kaczmarek answered 2/10, 2016 at 7:7 Comment(0)
V
1

Its just a copy-paste from one of the adobe's sites, explaining the diferences between Touch and Classic UI

A dialog that is built for the Touch UI is defined by using nodes of type un:structured. You define the type of control on the Touch UI dialog by setting the node's sling:resourceType property. For example, to define a text field on a Touch UI dialog, set the sling:resourceType property to granite/ui/components/foundation/form/textfield.

Note: When building a dialog for the Touch UI view, you define the type of control (for example, a text field) by setting the sling:resourceType property. In contrast, when building a dialog for the classic view, you define the type of control by setting its xtype property. You set both properties in the following sections. For a listing of all Granite objects, see Granite Reference.

The following illustration shows the JCR nodes of the component created in this development article.

example

As you can see in the previous illustration, there are two JCR branches that are related to the component's dialog:

/apps/mywebsite2/components/herotext2/cq:dialog /apps/mywebsite2/components/herotext2/dialog

Both of these dialogs are required when developing an AEM component. The first branch defines the component's dialog used in the Touch UI environment. The second branch defines the component's dialog used in the AEM classic view. Therefore to use the component in both AEM views, you need to create both JCR node branches.

So... summarizing, you need to have two dialogs defined if you want them to work on both UIs.

Veronicaveronika answered 3/2, 2015 at 16:49 Comment(1)
Thank you Mauri, I wasn't aware of the two dialogs. This will be very helpful as we move to 6.0. My problem is more with no content showing in the editor.html mode, nor having access to page properties.Horehound

© 2022 - 2024 — McMap. All rights reserved.