Am Freitag, 6. April 2007 schrieb Will Scheidegger: > I'm playing around with a custom repository (worked) and a custom > tree to handle it (tree configuration worked too) but I'm somehow not > able to introduce a custom node type. > > I would like to have the node type "ff:table". So I added this to > custom_nodetypes.xml: > > xmlns:ff="http://www.fastforward.ch/jcr/ff" > > at the top and > > <nodetype hasorderablechildnodes="true" ismixin="false" > name="ff:table" primaryitemname=""> > <supertypes> > <supertype> > mgnl:content > </supertype> > </supertypes> > </nodetype> > > Unfortunately I keep getting the following exception as soon as the > tree tries to add a new ff:table node: > > ERROR info.magnolia.cms.gui.control.Tree Tree.java(createNode:476) > 06.04.2007 09:19:55 ff:table: ff > javax.jcr.nodetype.NoSuchNodeTypeException: ff:table: ff: ff > .... > Caused by: org.apache.jackrabbit.name.UnknownPrefixException: ff > > What else do I have to add where so that my namespace and custom > nodetype is accepted?
Add NS to ns_reg.properties in the same directory. You can also checkout my patches to enable CNDs for modules: http://jira.magnolia.info/secure/IssueNavigator.jspa?reset=true&&customfield_10011Select=specificuser&customfield_10011=olli&sorter/field=issuekey&sorter/order=DESC O. ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/developer.html ----------------------------------------------------------------
