AnsweredAssumed Answered

Assigning values to MLText properties (cm:title for example)

Question asked by marcus on May 13, 2009
In my webscript, I'm setting the 'title' property of a node as

mynode.properties.title = "some new value";
mynode.save();

If I then try and access the title in the freemarker for the webscript as a string, it throws an error saying that it is in fact a SimpleHash. Passing the variable to some java code shows that it's a "HashAdapter" object. How and why is it being set like this? If I subsequently edit the title via the web client, I can then use the title as though it is a string again.

Version 3.1.0 Enterprise

Outcomes