Part 4. Other Twirl Theme Customizations

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

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

Portlets

Twirl Theme has default Plone 2 portlets set. If you want to add, delete or customize portlets you can do it via manage portlets options. There is a good piece of illustrated documentation about how to do it on plone.org.

Global Navigation / Tabs
Global Navigations

Twirl Theme has default Plone tabs management mechanism. You can add/remove/rename items in global navigation. For that:

  1. Go to Site setup -> Navigation settings, and remove selection from the 'Automatically generate tabs' box.
  2. 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

  1. Go to ZMI, select portal_view_customizations (Manages view customizations)
  2. In the right main area select twirl.footer (quintagroup.theme.twirl.browser.interfaces.IThemeQPloneThemeTwirl)
  3. Press Customize button.
  4. In the opened HTML window, make necessary edits, and save your changes.
  5. 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 (Manages view customizations). Select contents tab. Here you will see zope.interface.interface-twirl.footer document, that can be edited.

Connect with our experts Let's talk