Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
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>
Gelöst! Gehe zu Lösung.
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?
Zugriffe
Antworten
Likes gesamt
Hi Community
Replying on this post so that it comes up in order.
This post is migrated from AEM Forms to here.
The same problem was mentioned in a comment (5th comment from top by Nivaz Deen) section of this link :- http://labs.6dglobal.com/blog/2014-05-22/issues-with-touch-ui-aem6/
Please have a look at the same.
Thanks and Regards
Kautuk Sahni
Zugriffe
Antworten
Likes gesamt
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?
Zugriffe
Antworten
Likes gesamt
Are you suggesting Nivaz's question will provide a solution to my question? I don't see any solution to the issue mentioned. Please clarify.
Zugriffe
Antworten
Likes gesamt
Are you able to edit the component in touch UI if you just drag and drop it to an empty parsys ? I tested the "data-sly-resource" in my component on 6.1 and I am able to edit in Touch UI.
Zugriffe
Antworten
Likes gesamt
If I drag the component into a parsys then yes I can edit the component. The problem occurs when components are hard coded into templates. For example, we have Event Templates that have components like Title, Text, Image, etc all hard coded into that template for consistency.
I have not tried using data-sly-use as it would require rewriting some of our components. We may have to if we want to continue with this approach to templates...
I was hoping there might be a solution or a hotfix as it works in classic.
Zugriffe
Antworten
Likes gesamt
Just wondering, have you used any piece of code to remove extra div generated by AEM ?
Zugriffe
Antworten
Likes gesamt
edubey wrote...
Just wondering, have you used any piece of code to remove extra div generated by AEM ?
No we are not removing decorations
Zugriffe
Antworten
Likes gesamt
are you able to share a reproducible case here, so I can have a look at it?
Zugriffe
Antworten
Likes gesamt
try using -
<div data-sly-resource="${ @path='news-details' ,resourceType='/apps/project/components/content/news-details'}" data-sly-unwrap></div>
Zugriffe
Antworten
Likes gesamt
Does the path exist that you are trying to edit?
Zugriffe
Antworten
Likes gesamt
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.
Hi,
I am also facing same issue. Image of dialog in solution is not visible. Can you please upload the image again.
Thanks.
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten