[EMAIL PROTECTED] a écrit :
> Hello,
> 
> is there a way to find out if a document is new from within a (old) layout 
> template 
> Something like 'changeabledDocument.isNew' or 'documentActions.isNewDocument'?

I suppose that you mean "new document" == "not yet persisted DocumentModel
created by CoreSession.createDocumentModel(args...)". If so you can use the fact
that DocumentModel.getRef() will return null if the document model has never
been written to the repository.

Hence #{empty changeableDocument.ref} should do the job.

-- 
Olivier

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to