Plone makes it easy to create new types of portlets that include custom programming logic for your site. There are several ways to create custom portlets, but the simplest way to get started is to use the add-on product
collective.portlet.tal which provides a new type of portlet, called a
TAL Portlet. This portlet allows you to write simple bits of code using Zope's TAL templating language.
Let's walk through a quick example of building a custom TAL portlet, which will show a randomly-selected news item from your site.
Before you can add a TAL portlet, you must download the product from
Plone.org/products and install the add-on product
collective.portlet.tal on your site. The best way ...