Discussion:
[erp5-dev] How to get the Item Type List?
Mikolaj Antoszkiewicz
2007-02-19 14:25:00 UTC
Permalink
The "getPortalItemTypeList" function returns nice WEB page with
mysterious 'Nexedi VPN' text.
Is there a secret method to get the real list? :)

Regards,
Mikolaj
Jérôme Perrin
2007-02-21 11:59:04 UTC
Permalink
Post by Mikolaj Antoszkiewicz
The "getPortalItemTypeList" function returns nice WEB page with
mysterious 'Nexedi VPN' text.
It's just a ZPublisher feature, if a method returns a list with 2 elements, it
will send it to the browser as (page title, page body).

getPortalItemTypeList returns the list of type informations that are member of
the 'item' group. This can be configured using the ZMI,
in /erp5/portal_types/*.
If in your case it prints 'Nexedi VPN', then maybe you've hit the default
value (all this is defined in the ERP5Site class).

J?rome

Loading...