Hi ,
My custom clientlib file is something similar to Experiencing Adobe Experience Manager - Day CQ: AEM 6 SP2 - Touch UI Extend Site Admin Page Properti...
In this article, the pop-up/confirmation dialog has two properties :
id:
"CANCEL"
,
text:
"CANCEL"
,
and
id:
"SUBMIT"
,
text:
"SUBMIT"
,
We do not want this[basically referring to CANCEL and SUBMIT here] to be hardcoded, but to be fetched from say a config file or something of that sort.
Any thoughts on how this can be done.
Any pointers/code snippet/reference articles will be helpful.
Solved! Go to Solution.
From the same JS
1. Make a ajax to jcr node where those configurable properties will be stored
2. Replace the values hardcoded in that script
Remember, executing script code to show the pop (submit/cancel) should be callback of the result from step #1.
From the same JS
1. Make a ajax to jcr node where those configurable properties will be stored
2. Replace the values hardcoded in that script
Remember, executing script code to show the pop (submit/cancel) should be callback of the result from step #1.
Hi,
Thank you for your reply.
To make this configurable, we made use of i18n to place the values and fetch from it by the below.
Granite.I18n.get("property"); in the js.
Views
Replies
Total Likes
Views
Likes
Replies