Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

pypm install plone.directives.tiles

How to install plone.directives.tiles

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install plone.directives.tiles
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
1.1 Available View build log
Lastest release
version 1.1 on Jan 9th, 2014

This package provides declarative configuration (grokkers) for the plone.tiles package.



A basic tile is configured like this:

from five import grok
from plone.directives import tiles

from my.package import MyMessageFactory as _
from my.package.interfaces import IMyTileSchema

class MyTile(tiles.Tile):

    grok.title(_(u"My title"))
    grok.description(_(u"My description"))



  • A persistent tile can be configured by deriving from PersistentTile instead of Tile.
  • The context(), requires(), name(), and layer() directives are used in the same way as they are for a view derived from grok.View.
  • Templates are associated using the same semantics as are used for views. For example, a tile in mytiles.py defined in the class MyTile would be associated with a template mytiles_templates/mytile.pt by default.
  • Unlike a view, the name() directive is required and should give a dotted name for the tile by convention.
  • Dictionary key access (__getitem__()) is defined to work as it does in a tile. In a standard grokked view, it will retrieve a macro from the template. In a tile, it is used as a traversal hook to set the tile id, and subsequently to look up views on the tile. See plone.tiles for details.
  • Similarly, standard grokked views have a url() method which can be used to construct a URL, possibly with query string parameters. For grokked tiles, this is replaced by a url read-only property, which returns the canonical tile URL, as per plone.tiles.


1.1 (2012-11-26)
  • Added icon directive to support plone.tiles >= 1.1. [datakurre]
1.0 (2012-06-23)
  • Initial release [garbas]

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.