Skip to main content

Plone content rule to move an item based on an attribute

Project description

sc.contentrules.movebyattribute

Overview

sc.contentrules.movebyattribute is a content rule action used to organize content by moving it under a folderish object with the same id as the value returned by a selected attribute.

Use case

In a portal content is created in a folder /post and must be moved to a new location when it is published. This new location will be under another folder /blogs where every user has its own sub folder

A portal manager will add a content rule that when a Page is published inside /post it will lookup the value of the method Creator and then move the published content to a folderish under /blog. The id of this folderish will match the value extracted from the Creator method.

So, a user with username kirk, will add a new Page in /post and wait for publication. When a reviewer publishes the content, it will be moved under /blog/kirk, which must already exist.

Requirements

Installation

To enable this product,on a buildout based installation:

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

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

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

Sponsoring

Development of this product was sponsored by:

Credits

  • Erico Andrei (erico at simplesconsultoria dot com dot br)

Changelog

0.5 (2011-06-23)

  • Brazilian Portuguese translation [erico_andrei]

  • Initial release [erico_andrei]

Project details


Release history Release notifications | RSS feed

This version

0.5

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc.contentrules.movebyattribute-0.5.tar.gz (17.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page