CreatingAPortalContentZClass
Abstract
This page describes the steps needed to create a new type of PortalContent through-the-web, using ZClasses.
Recipe
In the
ControlPanel/Productsfolder, add a product,MyPortalContentProductNote: you may also do this inside an existing ZClass product.Create a new ZClass?,
MyPortalContent, in the product. IncludePortal Content Baseas one of its base classes.Add the "core" content: property sheets, DTML and Python methods, etc.
Create a Wizard for your new class in the product. Arrange to copy it to your portal's Wizards folder.
Override or extend the implementation of these methods from PortalContent:
-
SearchableText signal the values you want indexed by default in the portal's full-text index
- Discussion methods
add chrome to display/modify the discussion which hangs off of your object, e.g.:
addReplyFormaddReplyshowReplies
-
Add Your Class Name the list of ZClasses? that provide Content. This list is kept as a property of the
portal_propertiestool in your portal instance. The property is calledcontent_zclasses.
Resources
CreatingAWizard?