On Wednesday 26 September 2007 2:54:36 am Anahide Tchertchian wrote:
> > 1) The sample project adds a language field to the document
> > (not the metadata tab). It modifies the value on the metadata
> > tab, but uses a pulldown list (unlike the one on the metadata tab).
> > But it's not defined in a schema anywhere, nor documented anywhere
> > I could see. How & why is this done?
>
> Language is actually a field already provided by the dublincore schema,
> used by the sample document (as well as other document types on the
> application).
What I'm getting at here more is: why are these particular fields on the new
tab, and not on the Metadata tab? But from some checking, it seems that the
answer is that the metadata tab is defined in an xhtml already, and would
have to be overridden here. And that could perhaps cause problems because
it would lead to all metadata tabs having the new fields, yes?
It seems there is no core difference to the app between the metadata tab and
the others.
> <extension target="org.nuxeo.ecm.core.schema.TypeService" point="doctype">
>
> <!-- redefine workspace type to add schemas -->
> <doctype name="Workspace" extends="Document">
> <facet name="Folderish" />
> <facet name="SuperSpace" />
> <schema name="common" />
> <schema name="dublincore" />
> <schema name="workspace" />
> <schema name="custom" />
> ...
> </doctype>
>
> </extension>
I tried:
<doctype name="File" extends="Document">
<schema name="common" />
<schema name="file" />
<schema name="sample" />
<schema name="dublincore" />
<facet name="Downloadable" />
<facet name="Versionable" />
</doctype>
but upon starting, I see this:
18:49:11,749 ERROR [TypeImporter] >>>> ERROR: Failed to reregister doc type:
File : The following nodetype change contains non-trivial changes.Up until
now only trivial changes are supported. (see javadoc for
org.apache.jackrabbit.core.nodetype.NodeTypeDefDiff):
and the change didn't take effect.
-- John
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm