Hi,
You can use dialog value to update page property by writing a listener of dialog.
As soon as you submit the dialog, make a ajax call to the sling servlet or sling post servlet like curl with properties and update the nodes.
Below are the example/way how to do it, They are not the working code.
e.g. 1 Sling custom servlet
(function ($, $document) {
"use strict";
$(document).on("click", ".cq-dialog-submit", function (e) {
var dialogprop = $('#filedId');
var page = Granite.author.pageInfoHelper.json.status.path
$.post('/bin/utils/updatepage', { field: dialogprop, path : page},
function(returnedData){
console.log(returnedData);
});
});
})($, $(document));
e.g. 2 sling post servlet
(function ($, $document) {
"use strict";
$(document).on("click", ".cq-dialog-submit", function (e) {
var dialogprop = $('#filedId');
var page = Granite.author.pageInfoHelper.json.status.path
$.post('page', { "jcr:title": dialogprop},
function(returnedData){
console.log(returnedData);
});
});
})($, $(document));