[Product-Developers] content factories using zope.formlib
Derek Broughton
derek at pointerstop.ca
Thu Mar 26 14:08:32 UTC 2009
I created some content types using collective.tin, and my original version
worked near-perfectly, but of course I had to tamper, and now I can't seem
to get the content types to show in the "add new..." menu, though
using .../+/obiscanada.OBISFolder in the URL gets me the form, and creation
works perfectly.
Can somebody please direct me to the documentation about this /+/ syntax in
the URLs? Googling for "+" is self-defeating, and Martin's book doesn't
mention it.
This isn't a huge problem for me, as my content is really only supposed to
be created once, but I'd still like to understand _why_ it isn't being
added to the menu. I created the types.xml and OBISFOlder.xml profiles:
<?xml version="1.0"?>
<object name="portal_types" meta_type="Plone Types Tool">
<object name="OBISFolder" meta_type="Factory-based Type Information"/>
</object>
<?xml version="1.0"?>
<object name="OBISFolder" meta_type="Factory-based Type Information"
i18n:domain="obiscanada"
xmlns:i18n="http://xml.zope.org/namespaces/i18n">
<property name="title" i18n:translate="">OBIS Folder</property>
<property name="description" i18n:translate="">OBIS Folder</property>
<property name="content_icon">folder_icon.gif</property>
<property name="content_meta_type">OBISFolder</property>
<property name="product">obiscanada</property>
<property name="factory">obiscanada.OBISFolder</property>
<property name="immediate_view"></property>
<property name="global_allow">True</property>
<property name="filter_content_types">False</property>
..
</object>
Obviously the factory is found, as I can invoke it manually, so what else am
I missing?
--
derek
More information about the Product-Developers
mailing list