Skip to main content

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.

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

Include this package in eggs and zcml section of your buildout. For further reference please refer to the official guide.

Requirements

Mostly Harmless

https://secure.travis-ci.org/simplesconsultoria/sc.contentrules.layout.png https://coveralls.io/repos/simplesconsultoria/sc.contentrules.layout/badge.png:target:https://coveralls.io/r/simplesconsultoria/sc.contentrules.layout

Have an idea? Found a bug? Let us know by opening a support ticket.

Contributors

  • Érico Andrei [ericof]

  • Hector Velarde [hvelarde]

  • Avianca (for the space between seats)

You can find an updated list of package contributors on GitHub.

Development sponsored by Simples Consultoria.

Changelog

1.0.1 (unreleased)

  • Add translations to plone domain. [ericof]

1.0 (2013-04-13)

  • 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]

Release files for sc.contentrules.layout 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sc.contentrules.layout 1.0.1
File Size Uploaded
sc.contentrules.layout-1.0.1.zip 38.8 kB Details

Release files / sc.contentrules.layout-1.0.1.zip

Download URL sc.contentrules.layout-1.0.1.zip
Size 38.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4a7d2b774f0ce8850027f443e586e6ab21876f3761cb7315ba18d62c8f7cab6e
BLAKE2b-256 checksum
How to use checksums
6ceabaa46ad40804d5e63668c7e6feb9b9453bc4ddca1a6d7f367bfb4f3cf83c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page