Hi Cedric,
I've brought this issue up with the devs before and got a usable
solution: http://thread.gmane.org/gmane.comp.cms.magnolia.devel/6784/focus=6786
The setTitle method seems to be redundant (doesn't do anything in the
source!), so not sure why it's there. You can do what you need with
the NodeData though.
Hope that helps,
Simon
On 12/12/06, Dumarcey, Cedric (CH) <[email protected]> wrote:
HI,
I'm using this code in a servlet :
Content content =
MgnlContext.getHierarchyManager(ContentRepository.WEBSITE).getContent("/
myPath");
Content newContent = content.createContent("myContent",
ItemType.CONTENT);
MetaData meta = newContent.getMetaData();
meta.setTitle("myTitle");
meta.setTemplate("myTemplate");
content.save();
It all works fine except the method setTitle("myTitle").
The ContentNode is created with blank title.
Is it a bug or wrong way doing this ?
Thanks in adavance.
Dumarcey Cedric * IT - Development
Lloyds TSB International Private Banking
_________________________________
Route des Acacias 50 * P.O. Box 5145 * CH-1211 Geneva 11 * Switzerland
Tel: +41 (0)22 307 31 50 * Fax: +41 (0)22 307 31 61
************************************************************************************
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error, please notify the system manager
([EMAIL PROTECTED]) and delete the message with any attached files from your
system.
The confidentiality and integrity of this message cannot be guaranteed on the
Internet and the sender does not accept liability for its content.
***********************************************************************************
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------