Morar Ciprian
unread,Oct 9, 2020, 8:24:01 AM10/9/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Magnolia User Mailing List, bartosz...@magnolia-cms.com, Morar Ciprian, christopher...@magnolia-cms.com
Thanks Cristopher and Bartosz,
My solution for the moment was to modifiy vue-editor and to add a new props named carousel which contains the array.
const props = {};
const metadata = {};
// console.log("createElement")
// console.log(node)
if(node['mgnl:template'] && node['mgnl:template'].includes("carousel")) {
props['carousel'] =[]
for(let item of node['@nodes']) {
props['carousel'].push(node[item])
}
}
Object.keys(node).forEach((key) => {
if (key.match(/^(@|mgnl:|jcr:)/)) {
metadata[key] = node[key];
} else {
props[key] = node[key];
}
});
props.metadata = metadata;
return props;
Best regards,