Part 4. Other Twirl Plone 4 Theme Customizations

Tutorial about changing Twirl Plone Theme Portlets, Global Navigation, Site Actions, Personal Tools, Document Actions, and Footer in Plone 4.

The following tutorial covers customization of Twirl Plone Theme portlets, global navigation tabs, site actions, document actions, and footer on a Plone 4 website. Instruction for customizations in :

Portlets

If you want to add, delete or customize portlets in Twirl Theme you can do it via Manage portlets options. There is a good piece of illustrated documentation about how to do it on plone.org.

portlets.png

Global Navigation / Tabs

Twirl Theme has default Plone tabs management mechanism. You can add/remove/rename items in global navigation, for that go to Site setup -> Navigation, and remove selection from the 'Automatically generate tabs' box.

Global Navigations

Then, to create new tabs - switch to ZMI. Go to portal_actions -> portal_tabs. Add new CMF Action, give it a certain ID. Go to this newly created tab and fill the following fields: Title, Description, and URL (Expression) - URL of the document, the item is linked to. It should be typed in string format: $portal_url/my-short-name-of-document.

Site Actions, Personal Tools, Document Actions

Twirl theme uses Plone default mechanism for management Site actions, Personal Tools, and Document Actions. You can add/remove/rename items for those items via ZMI. Go to portal_actions and:

  • for Site Actions - select site_actions among portal_actions  items
    site-actions.jpeg
  • for Personal Tools / Personal Bar - select user among portal_actions items
    personal-tools.jpeg
  • Document Actions - select document_actions among portal_actions items
    document-actions.jpeg

For adding new items add new CMF Action, give it a certain ID. Go to this newly created tab and fill the following fields: Title, Description, and URL (Expression) - URL of the document, the item is linked to. It should be typed in string format: $portal_url/my-short-name-of-document.

Footer

You can edit Twirl theme footer text via Zope Management Interface. For this access ZMI and select portal_view_customizations (Template customizations).

portal-view-custom.png

Find twirl.footer (quintagroup.theme.twirl.browser.interfaces.IThemeQPloneThemeTwirl) item and open it:

twirl-footer.png

To change the existing footer text - press Customize button.

customize.png

In the opened HTML window, make necessary edits, and save your changes. Get back to the Plone site, reload the page to see whether your changes have been saved.

For the subsequent footer edits go to portal_view_customizations and select contents tab. Here you will see zope.interface.interface-twirl.footer document, that can be edited.

contents.png

Connect with our experts Let's talk