Hierarchy
Portlets are the objects that make up the side-columns of your site. They are used to display content such as navigation, calendar, links, recent news and events, search box, and many other features seperately from the main page content. Portlets are very useful for organizing content and displaying it in ways that help your site visitors find featured content. As such, portlets are often an important part of the overall design of your website. LearnPlone.Org has two Portlets: the navigation portlet on the left, and the "still stumped" portlet on the right.
This tutorial will try provide you with a general understanding of how Portlets work and also help you figure out which Portlet you want to use to achieve the outcome you seek. We will begin by digging into a concept known as portlet hierarchy.
Portlet Hierarchy
Portlets use a basic hierarchy approach. By default, the portlets that you assign at the root (homepage) of the site will propogate down to all the subsections of the site. If you want a different set of portlets or order of portlets for a particular sub-section, you must use the Block/unblock portlets control, to "block" the parent portlets. When you block Portlets, you must explicitly add all the Portlets that you wish to see on the child page.
Lets look at the following diagram for an example of portlet hierarchy:
In this diagram, our Portlets are designated in blue underneath the Page title.
As you can see we have two Portlets designated on our Home page (navigation and recent items). These same Portlets appear on our About Page because of portlet hierarchy.
However, on the Documentation page we added a third portlet - the Collection Portlet. Here we are still allowing Parental Portlets, but in addition we specifically added the Collection Portlet.
On both the Tutorials and Videos Pages we have to block Parental Portlets because we do not want the Collection Portlet that is on the Documentation Page to show. When we block Parental Portlets we must re-add the Portlets to each Child page. In this case we re-added the Navigation Portlet to both and then added the Search Portlet to both.
Remember that the child pages only inherit from the parent page directly above them. In our example, if we added a page called Staff under About and allowed the parent portlets without adding any additional portlets, it would show the same Portlets as the Home Page as well as the About Page. However do not think that it is inheriting from the Home page. If we were to change the About Page and added a Search Portlet, our Staff Page would reflect the Portlets on the About Page not the Home Page.