Développer ma barre des réalisations de la Communauté.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.

RÉSOLU

Dynamic value in data-sly-resource

Avatar

Level 2

Hi

I want to give a dynamic value in data-sly-resource, could someone please help how to achieve it.

I want to make the path of the resource as a dynamic value

<div data-sly-resource ="${'/content/new-page/jcr:content/parsys'}" data-sly-unwrap></div>

want to change it to something like

<div data-sly-resource ="${ currentPage.path + '/jcr:content/parsys'}" data-sly-unwrap></div>

Please help, Thanks in advance.

1 solution acceptée

Avatar

Réponse correcte par
Community Advisor

Hi,

What you want to do here? Can you please explain? so that we can help

but for your query you can use

<div data-sly-resource ="${currentPage.path}/jcr:content/parsys" data-sly-unwrap></div>

Thanks
Arun

Arun Patidar

AEM LinksLinkedIn

Voir la solution dans l'envoi d'origine

2 Replies

Avatar

Réponse correcte par
Community Advisor

Hi,

What you want to do here? Can you please explain? so that we can help

but for your query you can use

<div data-sly-resource ="${currentPage.path}/jcr:content/parsys" data-sly-unwrap></div>

Thanks
Arun

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 2

I just wanted to display all the content of some parsys on some other place on the page again with out being to author the same content again.

And thank for the reply, it helps.