How can I get the current page path e.g. /content/site/en/pageName or the current component path e.g. /content/site/en/pageName/jcr:content/component from within a dialog field validator (foundation.validation.validator)
registry.register("foundation.validation.validator", {
selector: "[data-foundation-validation=someValidator]",
validate: function(el) {
// Some code to get page or component URL to make AJAX call
}
});
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
use below -
var page = Granite.author.pageInfoHelper.json.status.path
Views
Replies
Total Likes
Hi,
use below -
var page = Granite.author.pageInfoHelper.json.status.path
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies