Expand my Community achievements bar.

data-sly-resource not editable - in 6.3

Avatar

Level 4

I just ran into the same exact issue from this posting: data-sly-resource Not Editable

All the same except the solution from that post doesn't work in AEM 6.3.

My template's page is a single line:

<div data-sly-resource="${@path='productCard', resourceType='mysite/components/content/productCard'}"></div>

It "almost works" except the referenced component is not editable.

Adding data-sly-unwrap makes no difference.

How can I make the component editable?

4 Replies

Avatar

Level 4

I just noticed it works if I add     sling:resourceSuperType="wcm/foundation/components/page" to the template page.

Is there any way to avoid this? I don't want all the standard page properties to show up.

Avatar

Level 3

Make sure that your component's primary type is cq:Component!

Check the .content.xml file to see if you have added the line jcr:primaryType="cq:Component"

Example:

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
   jcr:primaryType="cq:Component"
   jcr:title="Title of your component"
   componentGroup="custom group"/>

Avatar

Level 4

Yes, it was already cq:Component. The problem is really the page type. Which is annoying because I didn't want to include the standard page properties tabs.

Avatar

Level 3

You can overlay the dialog to only show the things you want.