data-sly-resource passing data to the another component | Community
Skip to main content
February 6, 2017
Solved

data-sly-resource passing data to the another component

  • February 6, 2017
  • 4 replies
  • 3305 views

<sly data-sly-resource="${ x @ resourceType='/apps/xxxxxx/components'}" data-sly-unwrap></sly>

It works in the preview mode.when we go to edit  mode, the page hangs up.please help me in this.

And also tell me other ways to pass resource to another component.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Feike_Visser1

you can use selectors for this. However this is not the intention of data-sly-resource.

Have a look if a template (data-sly-template) suits your requirement

4 replies

smacdonald2008
Level 10
February 6, 2017
Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
February 6, 2017

you can use selectors for this. However this is not the intention of data-sly-resource.

Have a look if a template (data-sly-template) suits your requirement

smacdonald2008
Level 10
February 6, 2017

Components should as much as possible get their values from Dialog or OSGi configurations. Passing values between components is not a great practice. 

February 7, 2017

can you give a good example for this?