You are here: Home / Documentation / How To's / How to make an easyslider portlet

How to make an easyslider portlet

by nguyen — published Jul 06, 2011 03:55 PM, last modified Aug 16, 2016 10:50 AM
Make a portlet that shows a collection that displays an easyslider, using collective.easyslider 0.6.1 and above

You need collective.easyslider 0.6.1 or newer on your site.

Assuming you have a collection called "all-images" in your site's root folder that shows all images on your site...

Go to ZMI -> portal_skins -> custom, add a Page Template, and call it "slidercollectionportlet"

Its contents should be:

    <div metal:define-macro="portlet">
       <tal:slider tal:content="structure context/all-images/@@slider_util/render_sliderview_inline" />

Use the Manage Portlets link and add a new Classic Portlet.  The name of the template should be "slidercollectionportlet" and you should leave the default macro name "portlet".

This works with ContentWellPortlets too.