[Zope-CMF] How to add portal_type selectively?
suresh_vv <sureshvv@hotmail.com>
sureshvv@hotmail.com
Tue, 21 Jan 2003 06:20:11 -0000
--- In zopeCMF@yahoogroups.com, Dieter Maurer <dieter@h...> wrote:
> "suresh_vv <sureshvv@h...>" <sureshvv@h...> wrote at 2003-1-20
15:29 -0000:
> > --- In zopeCMF@yahoogroups.com, "Ausum Studio"
<ausum_studio@h...>
> > wrote:
> > > You can create almost any portal object programatically using
> > > InvokeFactory(look for previous messages on this sibject). Now
if
> > you don't
> > > want it to appear at the "add content" screen, uncheck
> > the "Implicitly
> > > addable?" option at the type's property (within portal_types).
> > >
> >
> > Well... Not quite!
> >
> > I just discovered that if you turn off "implicitly addable",
then you
> > need to set it as an allowed content type in the parent folder.
> > Otherwise the TypesTool barfs.
> If you have checked "filter content types"...
Yes. You _MUST_ do that too :-) !