AnsweredAssumed Answered

get document.children properties using html.ftl

Question asked by e-no91 on Jun 27, 2014
Latest reply on Jun 28, 2014 by kaynezhang
I wanted to get a document's children's properties but i kept on getting undefined error.

I pass the folder through js as
mail.execute(document);
And in html.ftl
${document.children[0].properties["cm:creator"]}

I've checked by rewrting my js as
mail.execute(document.children[0);
and the properties as
${document.properties["cm:creator"]}
And it returns the correct result.

Or, is there a way to get the document's folder in the ftl?

Thank you in advance!

Outcomes