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.

Download
ActivePython
INSTALL>
pypm install sc.contentrules.layout

How to install sc.contentrules.layout

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install sc.contentrules.layout
 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.0 Available View build log
 
License
GPLv2
Dependencies
Depended by
Lastest release
version 1.0 on May 2nd, 2013

Overview

Content Rules: Set Layout (sc.contentrules.layout) package provides a content rule action to set a layout or default view for a content item.

This package is tested with Travis CI:

https://secure.travis-ci.org/simplesconsultoria/sc.contentrules.layout.png

Use case

Some Plone content types allows the user to select one of many available layouts to be used as default view. A good example is the Folder content type which provides options like Folder Summary View and Tabular View.

It is possible to change the default view for a content type but it will affect the entire portal, so if an editor wants to, in an area of the portal, to change the default view of newly created Folder content items to Folder Summary View, he will need to do it manually.

This package provides an action, Set Layout that allows content managers , using content rules, to selectively apply layouts to content items.

Actions

This package provides a content rule action to set the layout (default view) for a content object.

Set layout

Used to create a new user group this action have three options:

Layout
A layout to be applied to the content item that triggered the content rule. This action will inspect the content rule conditions and look for a Content Type condition to select the available layouts. If no condition is found the only available value in here will be Default View. Also, if there is a Content Type condition but two or more content types are selected, this action will provide you with an intersection of available views for all selected content types

Installation

To enable this product,on a buildout based installation:

  1. Edit your buildout.cfg and add sc.contentrules.layout to the list of eggs to install

    [buildout]
    ...
    eggs =
        sc.contentrules.layout
    

After updating the configuration you need to run the ''bin/buildout'', which will take care of updating your system.

Contributors

  • Érico Andrei [ericof] -- Initial idea
  • Avianca (for the space between seats)

Changelog

1.0b3 (unreleased)
  • Support Plone 4.3 [ericof]
  • Remove dependency on zope.app.publisher. [hvelarde]
1.0b2 (2012-11-14)
  • Fix packaging [ericof]
1.0b1 (2012-11-14)
  • Initial release [ericof]

Subscribe to package updates

Last updated May 2nd, 2013

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.