With the content types in place, we now have a flexible system for managing cinema content. The site administrator can create the basic site structure with standard folders and pages as well as the more specific Cinema Folder and Film Folder types. Inside these, staff can describe Cinemas and Films in some detail, and add promotions for cinemas and groups of cinemas. However, we have not yet explained how promotions are shown to the user, which we will do using a new type of portlet.
The portlet is found in the
portlets sub-package. The files here follow the conventions established in
plone.app.portlets. For the promotions portlet, there is a page template called
promotions.pt and a Python module called