Is there something in AEM where I can drag and drop variables like in Scratch? | Community
Skip to main content
Level 2
April 29, 2023
Solved

Is there something in AEM where I can drag and drop variables like in Scratch?

  • April 29, 2023
  • 3 replies
  • 934 views

I would like to be able to expose a variety of variables whose values are retrieved after some api calls.

 

Then, these variables should be easily accessible to content author, so I am thinking of something like those Scratch building blocks so that the author can drag into some kind of rich text field. Is there something that serves this kind of purpose in AEM?

 

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 TarunKumar

Hi @alanng4 ,
So, basically you are getting the variable from api and want to reuse them. Either you can use them directly into your custom component or you can also store them as window variable or in local storage to use later on.


3 replies

TarunKumar
Community Advisor
TarunKumarCommunity AdvisorAccepted solution
Community Advisor
April 30, 2023

Hi @alanng4 ,
So, basically you are getting the variable from api and want to reuse them. Either you can use them directly into your custom component or you can also store them as window variable or in local storage to use later on.


joerghoh
Adobe Employee
Adobe Employee
May 1, 2023
Nikhil-Kumar
Community Advisor
Community Advisor
May 2, 2023

@alanng4 - You can try putting them as datasource in a dropdown and that dropdown you can attach to component.
So whereeven and whenever you need the variable or value you can just select it from the dropdown.