src/source/howto-portlet.rst
changeset 90 06915aa059c5
parent 83 ee94d17857a4
child 104 942151432421
--- a/src/source/howto-portlet.rst	Fri May 25 14:28:29 2018 +0200
+++ b/src/source/howto-portlet.rst	Tue Jun 19 16:11:57 2018 +0200
@@ -1,8 +1,8 @@
 .. _portlethowto:
 
 
-How to create a new Portlet?
-============================
+How to create a Portlet?
+========================
 
 **Portlets** are pluggable user interface software components that are managed and displayed in a web portal,
 for example an enterprise portal or a web CMS. A portlet can aggregate (integrate) and personalize content from
@@ -160,9 +160,21 @@
 .. code-block:: python
 
     @adapter_config(name='another-renderer',
-                    context=(IPortalContext, IPyAMSLayer, Interface, INewPortletSettings), provides=IPortletRenderer)
+                    context=(IPortalContext, IPyAMSLayer, Interface, INewPortletSettings),
+                    provides=IPortletRenderer)
     @template_config(template='my-portlet-render-2.pt', layer=IPyAMSLayer)
     class AnotherNewPortletRenderer(PortletRenderer):
         """Another new portlet renderer"""
 
         label = _("Another comment renderer")
+
+.. tip::
+    You can use an other template without create a new renderer component,
+    with :py:func:`pyams_utils` to override the default template with you own.
+
+
+.. note::
+
+    Select the new portlet in ZMI to make it available in the website template editor
+
+    .. image:: _static/select_portlet.png