Simplelayout is an easy to use plone package for creating content pages
Python CSS JavaScript
Clone or download
Latest commit d772e8e Feb 2, 2017



SimpleLayout provides an intuitive way of adding and arranging the different elements of a page such as paragraphs, images, files and links using drag-and-drop functionality. These elements are implemented as addable and easily arrangeable "blocks". Because of the restricted dimensions of text, images and other content elements, the general result is content with a uniform look and feel throughout the site.


simplelayout.base >= 4.0 does no longer include and install the old simplelayout types. If you still use them, also install simplelayout.types.common. But we encourage you the newer implementation in ftw.contentpage!

Installing simplelayout

New ftw.contentpage implementation

The package simplelayout.base nowadays does no longer contain the content type implementation. We encourage you to install ftw.contentpage, which bases on simlelayout.base and provides a simplelayout content page type and the necessary block types.

Please follow the installation instructions in the readme of ftw.contentpage.

Old simplelayout types

If you, however, want to install the old simplelayout types, you may want to install simplelayout.types.common.

You need to install both, simplelayout.base and simplelayout.types.common:


eggs +=

And install simplelayout.base and simplelayout.types.common generic setup profiles.

How to use SimpleLayout

Check out our video section on

1.) Add a new Page from the "Add new" dropdown.

In this page one can now add the following page elements:

  • File
  • Image
  • Link
  • Page
  • Paragraph

2.) Add a new Paragraph from the "Add new" dropdown:

  • Provide a title for the new paragraph (not required) and check "Show Title" to determine whether the paragraph title will appear in the page's body text.
  • Provide body text for the paragraph.(Of course one could use this first paragraph to provide the text for the whole page, but that would defeat the purpose of having easily arrangeable "blocks" of text and other page elements)

Image tab:

  • Browse for an image and provide a caption and alternative text.
  • Determine whether the image is "clickable", i.e. whether the image source can be opened in a new tab. If collective.greybox is installed, it will use greybox to show the image.

Settings tab:

  • Provide keywords/tags for categorization purposes.
  • Specify "Related Items": If the "teaser" box is checked, related items of this paragraph will be displayed underneath the paragraph.
  • Provide "Creators" (Persons responsible for creating the content of this item).
  • Allow comments.
  • Determine whether this paragraph should be included in the site navigation (by default it is not included).

When saving the paragraph, one is redirected to the edit tab of the parent page. Here one is presented with the option of editing the page as a whole, or editing one of the sub-elements of the page. The layout of the recently added paragraph can be further manipulated using the layout icons in the top panel of the that paragraph. The paragraph can also easily be deleted from here, or its order in the page changed using the "ordering" arrow icons in its top panel (will be removed, you should use the drag'n'drop funtionality).

3.) Add an Image to the page from the "Add new" dropdown:

  • Browse for an image and provide alternative text. The Title is used as the image caption.

4.) Add a File to the page from the "Add new" dropdown:

  • Browse for and add a file (for example a pdf). The file download link will be displayed in the page content.

5.) Add a Link to the page from the "Add new" dropdown:

  • Specify an external link, which will be displayed in the page.

6.) Add another page: The parent page acts as a container in which sub pages can be added. These will appear in the site navigation.

Page Layout:

To add layout functionality to the page as a whole, go to "Site Setup" => "Simplelayout Configuration", and check "Show Design". A "Design" dropdown will be added to your SimpleLayout pages, from which you can choose one of 3 possible layouts: Normal, Two Columns, Two Columns One on Top Here one can also determine the dimensions of the layout columns by providing pixel values in the other 2 "configuration" tabs.

Go to the edit tab of your SimpleLayout page and choose another layout from the "Design" dropdown.

In "Two Columns" designs it's possible to align the blocks like a table. Use the "align to grid" link in the top panel of the page.

Drag and drop functionality:

Drag the existing content blocks into the other areas of the newly created layout, by clicking on the top panel and dragging the block to the desired position.

Support of following products is allready included

Simplelayout provides the following features:


  • Base functions
  • Base layout rendering
  • Base block actions
  • Base viewlets - one column - two columns - two columns with one column on top - controls
  • configlet - simplelayout is completely configurable TTW, including image sizes and column dimensions
  • design menu - choose between the different designs/layouts
  • includes block configuration adapters - all block configs such as layout, image sizes, block height etc, will be saved in an adapter (annotations) for every block
  • upgrade steps
  • base JS functions - align to grid (for two columns designs only) - helper functions
  • New scales for atct image field (requires zope restart)

For more information check simplelayout dependencies: * simplelayout.ui.base * simplelayout.types.common * simplelayout.ui.dragndrop


This FAQ provides some technical information/answers.


After reinstall I lose my configlet configuration?


Do not reinstall simplelayout.base using QI, but rather use portal_setup import steps. Because the configlet data is stored in a local utility, in the event of a reinstallation the utility will be removed (all data is gone) and added again with default values. The following example shows how to change the sl configlet default values with setuphandlers in a policy package.


from zope.component import getUtility
from simplelayout.base.configlet.interfaces import ISimplelayoutConfiguration

SL_CONFIGURATION = {'show_design_tab' : True,
                    'small_size' : 145,
                    'middle_size' : 302,
                    'full_size' : 614,
                    'small_size_two' : 66,
                    'middle_size_two' : 145,
                    'full_size_two' : 300}

method in

def simplelayoutConf(self):
    sl_conf = getUtility(ISimplelayoutConfiguration, name='sl-config')
    for key in SL_CONFIGURATION:

How does simplelayout know which content type is a block?


Simplelayout marks blockable types with the interface ISimpleLayoutBlock


Can I use simplelayout listings on other content types?


Of course, just make sure your type provides the ISimpleLayoutCapable interface and paste the following code into your template

<tal:block content="structure provider:simplelayout.base.listing" />

Make simplelayout blocks addable on your type.


Can I uninstall simplelayout.base?


As many new packages based on component architecture, not yet...


How can I add a new image scale?




How can i remove them?


Navigate to portla_types/blocktype in the ZMI, select "actions" and remove the image scale from actions list.


I have a content type which I want to use it as block in simplelayout?


Just register a BrowserView named block_view for the specific content type, then z3c knows what to do. Example in simplelayout.types.common:


  permission="zope2.View" />

I would like to create my own design template?




Is there a possibility for blocks to show up as a portlet?


This feature is under development and will be released soon.


How do you know in multible column designs, where to show up the blocks?


Blocks has two additional interfaces: a slot interface and a column interface. The slot interface tells the block where he should appear. The column interface desides the image scale.


My images will be resized by CSS?


Tick the box "Set simplelayout scales as image scales", restart zope an "recalc images". Don't use atct_tool for this action, because it will ignore paragraphs.


Is it possible to use more than one block_view per type?


Yes, in the 2.0 release of simplelayout.base its possible to define your own view for a blockable type, you have to customize the actions and the action-icons of your content type. the action id should look like the following example id: sl-dummyscale-dummycssklass-myview sl- = simplelayout prefix for actions dummyscale = the image scale, possible values are small, half or full dummycssklass = an additional css wrapper class myview = your view must be registered as block_view-myview

If yout don't need a scale or additional css class, please fill in some dummy values as in the example above, Otherwise your view will have the wrong name.


  • mess up JS
  • fix block height, if moving blocks from two to one column.
  • send feedback if ajax request fails


  • Add simplelayout.base to your buildout configuration:
eggs +=
  • Install the generic import profile.


This package provides an uninstall Generic Setup profile, however, it will not uninstall the package dependencies. Make sure to uninstall the dependencies if you no longer use them.



This package is copyright by 4teamwork.

simplelayout.base is licensed under GNU General Public License, version 2.