Solved! Go to Solution.
Views
Replies
Total Likes
This worked for me
$.ajax({ url: "/etc/acs-commons/lists/list/_jcr_content.list.json",
dataType: 'json',
async: false,
success: function(data) { $.each(data, function(i,value) { html = html + getOptionHtml(value); }); } });
Views
Replies
Total Likes
This article has a package - did you install the package to get this example working.
Views
Replies
Total Likes
Thanks donald. This example is working fine. I wanted to get options from data source i.e from an admin screen.
Views
Replies
Total Likes
Not sure if this helps in what you're looking for --
$.getJSON( "/etc/acs-commons/lists/list/_jcr_content.list.json", function( data ) {
JSON.parse(data);
// do something with parsed values or inject it into RTE DOM
});
Views
Replies
Total Likes
Gaurav is correct - you need to implement JavaScript logic.
Views
Replies
Total Likes
This worked for me
$.ajax({ url: "/etc/acs-commons/lists/list/_jcr_content.list.json",
dataType: 'json',
async: false,
success: function(data) { $.each(data, function(i,value) { html = html + getOptionHtml(value); }); } });
Views
Replies
Total Likes