Hi Devs, I've been experimenting with automated page creation via the APIs, and think I've found a bug in the MetaData class. I'm using 3.0RC2.
The symptoms I'm getting are that although I can create the page and set properties like the template using the MetaData class implementation, I cannot set the 'title' property using MetaData.setTitle(). From analysing the behaviour of which properties work and which don't via the JCR Browser, the difference seems to be that 'title' is stored as a subnode of the content node by the admin interface, whereas template etc. are properties of the content node itself. It seems like the MetaData class implementation doesn't take account of this, and tries to store everything as a property of the content node. I wanted to make sure this was actually a bug (and I'm not just doing something stupid!) before logging it in JIRA. I'm happy to make the changes to MetaData if someone can point me towards an example of how to create a subnode like this. Thanks, Simon ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
