data-sly-resource Not Editable | Adobe Higher Education
Skip to main content
pakram
Level 2
October 16, 2015
Répondu

data-sly-resource Not Editable

On a previous project (6.0 classic) I was able to use data-sly-resource in my templates to include some components and make them editable by authors. In playing around with 6.1 with touch ui, I tried to use the same approach but experiencing an unexpected outcome. The component will appear on the page, however it is not editable in Touch UI. It is editable in classic however. Am I missing a property or some configuration for the design_dialog that is preventing it from being edited in Touch UI?

Here is an example from my template:

<div data-sly-resource="${'news-details' @ resourceType='/apps/project/components/content/news-details'}">Event Detail</div>
Ce sujet a été fermé aux réponses.
Meilleure réponse par smacdonald2008

I just tested Sightly on AEM 6.1. 

<p>This is your Sightly component:</p>
<div data-sly-use.heroTextObject="com.mycompany.myproject.sightly.HeroTextComponent" data-sly-test="${heroTextObject}">
       <h1>${heroTextObject.heroTextBean.headingText}</h1>
       <p>${heroTextObject.heroTextBean.description}</p>    
</div>

This is editable in Touch 6.1 - see:

[img]Sightly61.png[/img]

For your component - do you have a dialog - like the one shown above? 

12 commentaires

Rima_Mittal
Level 4
November 21, 2016

if we are including a component within some other component, the node wont exist until we edit the dialog once. so, the path doesnt exist yet.

Level 2
January 18, 2017

Hi,

I am also facing same issue. Image of dialog in solution is not visible. Can you please upload the image again.

Thanks.