Skip to main content

Folderish News Item, Document and Event as replacement for default types.

Project description

Introduction

Provides the types “Folderish Event”, “Folderish News Item” and “Folderish Document” as replacements for their Plone 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 everything 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: https://sixfeetup.com/blog/plone-drupal-features )

Alexander Limi also wished folderish content back in 2008: “#10: Content re-use is overrated — people like folderish” https://limi.net/things-plone

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.

Translations

This product has been translated into

  • German.

  • Spanish.

You can contribute for any message missing or other new languages, join us at Plone Collective Team into Transifex.net service with all world Plone translators community.

Installation

This addon can be installed has any other addons, please follow official documentation.

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]

Tested with

Plone 4, Plone 5

Tests status

This add-on is tested using Travis CI. The current status of the add-on is:

https://img.shields.io/travis/collective/collective.folderishtypes/master.svg http://img.shields.io/pypi/v/collective.folderishtypes.svg

Contribute

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

TODO

License

The project is licensed under the GPLv2.

Changes

3.1 (2022-11-15)

  • Fix problem with incomplete loaded z3c.caching which causes a “Unknown directive” ConfigurationError. [thet]

  • Add Transifex.net service integration to manage the translation process. [macagua]

  • Added Spanish translation. [macagua]

  • Updated gettext files support. [macagua]

3.0.0 (2019-12-17)

  • Moved to named behaviors. [iham]

2.2.0 (2019-03-20)

  • Add support for Python 3 and Plone 5.2. [pbauer]

2.1 (2017-10-03)

  • Use ‘getAllowedSizes’ from CMFPlone if available to allow AT free use [tomgross]

  • Change portlets to support z3c.form and make it Plone 5 compatible (no more formlib). [thet]

2.0.2 (2015-06-30)

  • Configure folderish types to use the plone.content.itemView caching ruleset instead the folderView one. [thet]

2.0.1 (2015-04-08)

  • Fix redirection to parent context after editing for Archetypes. We cannot import something from Acquisition in a Filesystem script. [thet]

2.0 (2015-03-04)

  • Plone 5 + 4 safe call of the @@folder_listing listing_macro. [thet]

  • Provide a redirectparent.zcml file. When loading it the user is redirected to the parent folder after adding or editing. This avoids confusing behavior of creating nested content structures, while one might add multiple content items to one folder. For consistency reasons, this is done for all types. For Archetypes, this behavior is enabled by default. [thet]

  • Add a browserlayer for collective.folderishtypes including the .at and .dx sub packages together with upgrade steps. Bind relevant browser views to these browser layers. [thet]

  • Allow “Site Administrator” to add ATContentTypes based Folderish Content Types. [thet]

  • Better PloneArticle migration: Set content_type and filename for files and images. Plus: migrate contentleadimage, if available. [thet]

  • Update unsintall profiles. [thet]

2.0b2 (2014-10-17)

  • Fix broken release [rnix]

2.0b1 (2014-10-02)

  • Add ISelectableConstrainTypes to behaviors of Dexterity folderish types. [agitator]

  • Add content listing viewlet. [agitator]

  • Add migration step for Products.PloneArticle objects to Archetypes based foldersh document objects. [thet]

  • Initialize permissions and roles for Archetypes foldersh types. [thet]

  • Dexterity support. [thet]

1.8 (2013-11-23)

  • In folder_summary_view do a more sane check, if an image is available. [thet]

1.7 (2013-08-23)

  • Remove bobo_traverse in Foldersh News Item, since plone.app.imaging does the traversing. [thet]

  • Remove vCalendar action entry from FTI config of Folderish Event. [thet]

  • More documentation: How To create own content types based on collective.folderishtypes, How to migrate non-folderishtypes to folderish ones. [thet]

1.6 (2013-04-23)

  • Update translations and translate folder_listing. [thet]

  • Add z3c.autoinclude.plugin entry point. [thet]

1.5 (2012-11-30)

  • Let the folderish types derive from Products.ATContentTypes ATFolder instead of plone.app.folder’s implementation. It inherits some i18n classes. This fixes the issue that on translation of folderish types LinguaPlone’s translation view wasn’t shown. [thet]

1.4 (2012-11-28)

  • Give the original, non-folderish types another title, so that they can be easily kept apart from the folderish ones. [thet]

  • For folderish events, move the location field back to the main schemata. [thet]

1.3 (2012-11-26)

  • Allow discussions from plone.app.discussion on Folderish Types. [thet]

1.2.1 (2012-09-06)

  • CSS fix [rnix]

1.2 (2012-09-04)

  • Removed folderish=True when finalizing the schema, which prevented relateditems from being displayed. Updated import to plone.app.folder. [agitator]

  • Fix meta types in FTI to follow consistent conventions. [rnixx]

  • For Folderish Event, use plone.app.event’s ATEvent implementation if available. [thet]

1.1.1 (2012-02-05)

  • Add a custom style class for the contextual contents portlet based on the portlet’s name. [thet]

1.1 (2012-02-04)

  • Add a contextual contents portlet, which shows the contents of folderish types in a portlet. [thet]

1.0 (2012-02-02)

  • No Changes, release as 1.0 final. [thet]

1.0b5 (2011-09-07)

  • Updated documentation: Missing viewlet issue. [thet]

1.0b4 (2011-09-07)

  • Locales Update. [thet]

  • Add types to image_types in portal_atct to allow image scale recreation. [thet]

  • Add HistroyAwareMixin and configure types to be versionable. [thet]

  • Remove folderish_listing_viewlet, since there is already a portlet which can be used. [thet]

  • Include CSS via link instead of import, which can then be better processed by XML manipulation tools like Deliverance or Diazo. [thet]

  • More explicit content-icons background styles which don’t override background-color. [thet]

  • Use plone.app.imaging scales - apply a schema patch to FolderishNewsItem. [thet]

  • Fixed traversing to image scales for FolderishNewsItem. Subclasses should implement __bobo_traverse__ too. [thet]

1.0b3 (2011-03-22)

  • Add rolemap.xml for generic setup to have proper configured permissions. [thet]

1.0b2 (2011-03-10)

  • Make portlet registration optional and register portlets only for folderish types. [thet]

  • Updated folder_listing.pt and folder_summary_view.pt to current Plone trunk. [thet]

1.0b1 (2011-02-18)

  • Initial release

Project details


Download files

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

Source Distribution

collective.folderishtypes-3.1.tar.gz (46.4 kB view details)

Uploaded Source

File details

Details for the file collective.folderishtypes-3.1.tar.gz.

File metadata

File hashes

Hashes for collective.folderishtypes-3.1.tar.gz
Algorithm Hash digest
SHA256 f72fcd7cdd6bfc304252554af639c85b9922c59d75ff24933cc996abf9e4072a
MD5 58bd4a7b4969ce557f1ecd9ff88c9844
BLAKE2b-256 1278d7ba9036f94b33bab2fab5b921656c0f8205db9794c3542624c61c515065

See more details on using hashes here.

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