


Hi,
Is there any way to add an experience fragment to a page dynamically using HTL or get requests?
I keep getting forbidden when trying to access experience fragments using get requests like in the code below :
function getFragment(path) {
$.ajax({
type: 'GET',
url: path,
success: function(xf) {
$("#article-container")
.append(xf);
}
});
}
Regards,
Mark
Views
Replies
Sign in to like this content
Total Likes
You need to make sure correct read access for that path based the current user who is trying to access XF
Views
Replies
Sign in to like this content
Total Likes
I have access to the experience fragments and I am not having the same problems with content fragments.
Views
Replies
Sign in to like this content
Total Likes
@mark_julianp181 - I am looking for similar solution to load the XF content based on the drop down selection, In the JCR node, I have only the reference path of the XF variation only. Not sure how to get the complete DIV of the XF to replace the content on the page. Please provide your inputs if you have already implemented this solution.
Views
Replies
Sign in to like this content
Total Likes