Theme Tool


This looks like the best/easiest way to do themes for plone going forward.

static content portlet


add portlet to custom dir, add property to folder in zope

First, add a file with your content to zmi > portal_skins > custom. Here's a sample of the format:

<html xmlns:tal=""
<!-- The static box -->
<div metal:define-macro="portlet">
<div class="portlet" id="portlet_name">
<h5 style="background-color:black;color:white;font-weight:bold" i18n:translate="box_static">Stuff</h5>
<div class="portletBody">
<div class="portletContent even" style="background-color:red;font-weight:bold;color:white;">
Text here...
<div class="portletContent odd">
More stuff here ...
<div class="portletContent even">
More stuff...

To activate it in a given location in your site, navigate in the zmi to the location of the folder in which you'd like the side portlet to appear. Click on "properties tab" and add a property with these values:

Name: right_slots (or left_slots depending on where you want it to appear)
Value: here/portlet_name/macros/portlet
Type: lines

Where "portlet_name" is the name of your new static portlet.


If you have a nested folder within the folder to which your applying the portlet, and you don't want the portlet to show up in the nested folder, add a new property to the nested folder with the above parameters, except leave value blank. This will clear out the portlet call for the nested folder, but leave it in effect for the folder above it.


update portal catalog (reindex)


zmi > portal_catalog > advanced > update catalog

Update Portal Catalog for Plone Site

To update the portal catalog: 1. Go to Zope Management Interface (zmi) 2. Click on your plone site 3. portal_catalog 4. advanced tab 5. update catalog

This can take a long time for a big site.


plone3 collection edit role


zmi > security > add permission for topics

Version: 3+

Finally got this working the "right way". In plone 3, it's a bit tricky to let editors modify collections (AKA smart folders, or topics). This is because out of the box, the only permissions you can add for a given item are "add", "view", "edit", or "review" and none of these allows for editing a collection by a regular editor-type user.

What worked was to allow an editor-type role to edit "collections" (still referred to as "topics" in the zmi) under the huge master permissions matrix in the zmi. Usually, you want to avoid making changes here, but in this case, I believe it's what you need to do.

zmi > security > find the "edit topics" permission > check for the appropriate role (IE editor).

I believe that this works the way you want since you're in essence assigning the "editor" role only locally under the sharing tab. So IF someone is an editor in a given area, THEN they get to edit collections. However, if someone is not an editor in a given area, then they can't edit period, so you're good.

Test after making the change to verify it works as you expect on your instance.


embed flash 100% width


allow embed, wrap in table

Quick and dirty method for getting swf flash files into plone site. First, set security settings to allow embed code on your site. Only do this if you know and trust your editors. Otherwise, don't do it.

Next, publish your flash project and choose html option so you get the wrapper code for embed. Copy just the embed part, and paste into html view of your page in plone. Note that by default it will create a relative link to the swf and assume it's on the same level. So your swf should be uploaded in the same directory as your page. If not, modify the embed src code to point to the real location of the swf.

A handy way to make the flash banner float to 100% of the page width is to just create a quick wrapper table at 100% width around the embed code, and match the background of the table to the background of the swf like so:

<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#aa5822">
<tr bgcolor="#aa5822">
<td bgcolor="#aa5822">
<embed width="468" height="60" align="middle" src="Untitled-1.swf" quality="high" bgcolor="#ffffff" name="Untitled-1" allowscriptaccess="sameDomain" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="">

Reorder Items in Large Plone Folder


When you have a bunch of items in a plone folder (as of version 3), you can't drag and drop between page two and one on the pager display of folder contents. To get around this, enter this syntax into your browser's URL bar: 

site setup



Jump to site setup with: