Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

82 lines (54 sloc) 2.829 kb

Introduction

Provides the types "Folderish Event", "Folderish News Item" and "Folderish Document" as replacements for their ATContentTypes equivalents. Those types are able to hold any other content, like a Folder.

There is a "portlet" profile, which installs a portlet to show the contents of an folderish type.

You can limit the types, which can be added to FolderishTypes by providing a Generic Setup import type configuration.

The reason for this package is, that in my experience it's easier to group related content together at one place. An article about something fancy might have an image gallery associated with it as well as some pdf-downloads. With this package you can put everyting inside the article. Another use case is that you can structure content hierarchically and don't need to define "default pages" - a concept hard to understand and handle (see: http://www.sixfeetup.com/blog/plone-vs.-drupal-core-features-comparison )

Alexander Limi also wished folderish content back in 2008: "#10: Content re-use is overrated — people like folderish" http://limi.net/articles/18-things-i-wish-were-true-about-plone/

To use collective.folderishtypes with Archetypes, depend on the dexterity extras_require in setup.py or buildout like so:

collective.folderishtypes [archetypes]

For the dexterity version, like so:

collective.folderishtypes [dexterity]

How to migrate Products.PloneArticle documents to Folderish Document

A upgrade step "PloneArticle to Folderish Document" in the collective.folderishtypes default profile for migrating PloneArticle objects to Folderish Document objects is provided. Note, this does not cover PloneArticleMultiPage at the moment.

How to migrate non-folderishtypes to folderish ones

Non-folderish content types are missing some btree attributes, which folderish content types have (See Products.BtreeFolder2.BTreeFolder2Base._initBtrees ).

plone.app.folder provides an upgrade view to migrate pre-plone.app.folder (or non-folderish) types to the new Btree based implementation (defined in: plone.app.folder.migration.BTreeMigrationView).

To upgrade your non-folderish content types to folderish ones, just call @@migrate-btrees on your Plone site root, and you're done.

TODO

Tested with

Plone 4, Plone 5

Contributors

  • Johannes Raggam <raggam-nl [at] adm [dot] at> (Author)
  • Robert Niederrreiter <rnix [at] squarewave [dot] at>
Jump to Line
Something went wrong with that request. Please try again.