Skip to main content

A block approach for Plone 6 Classic

Project description

collective.contentsections

This product offers a block approach for Plone 6 Classic based entirely on Dexterity content types. It is largely based on the code that was developed in the imio.smartweb.core product for the Walloon municipalities.

The approach in this product can be seen as a generalisation of the Full content view available in Plone on Folder content type.

The plone site is seen as a folder hierarchy that contains pages. A page is a folderish content type composed of sections. A section can contain elements of the same type (File, Image, Link). Folders, pages, sections and elements are all Dexterity content types.

The section view view redirects to its position in its parent page view view. Section content types are hidden from research but their contents are indexed in the SearchableText index of their parent page.

Images and files are seen as elements. Images are only available in images sections and as lead image in all content types. Files are only available in files sections. Links are sometimes seen as elements of the links section and sometimes as redirect pages.

Here is a picture of the model.

Archimate Model

Features

This product provides :

  • basic schema and class for section content types
  • LeadIcon vocabulary and behavior based on plone.icons registry records
  • collective.taxonomy.section_css_classes taxonomy for available Section CSS Classes
  • TextSection wich contains a simplified TinyMCE field and the behavior LeadImage. A TextSection contains only the lead image. No more image in TinyMCE text field.
  • HTMLSection to integrate iframe from youtube, google map and other iframe providers. No more video, iframe in TinyMCE text field.
  • CollectionSection to link a section with a collection.
  • SelectionSection to link a section to other pages. The SelectionSection replace the Related items behavior.
  • CardsSection content type based on a collective.z3cform.datagridfield field to make nice information blocks/links on a page
  • ImagesSection, LinksSection, FilesSection folderish section content types to keep the site structured and facilitate the cut and paste of sections between pages.
  • A Page view for folderish content types
  • BasicPage, EventPage page content types

This product fits Plone with:

  • a new default page name index
  • LeadImage on File and Link content types
  • a profile to simplify TinyMCE interface

Demo content

The file https://github.com/sverbois/collective.contentsections/blob/main/demo.json contains some demo pages that can be loaded into the site using the @@import_content view of the collective.exportimport product. collective.exportimport is installed on the developement environment. You have to hide Plone Leftcolumn and Plone Rightcolumn portlets on your site to display the pages correctly.

Choices/Beliefs

  • We want a KISS solution.
  • We believe we can create the majority of websites with only one section per row.
  • We want a solution for junior integrators.
  • We believe that Plone Classic can be used to create beautiful sites in less than a day.
  • We don't have any NewsPage content type. We believe it can be replaced by a collection of BasicPAge.

Possibilities

  • If you activate workflow on sections, you can restrict access to certain sections of a page.
  • As section are Dexterity content types, you can create a collection/faceted navigation of sections.

Installation

Install collective.contentsections by adding it to your buildout:

[buildout]

...

eggs =
    collective.contentsections

and then running bin/buildout

Development

make install
make start

Credits

Most ideas developed in this product come from people who worked at iMio on the imio.smartweb product family during the year 2021. This team was composed of:

  • Christophe BOULANGER
  • Elisabeth DONNAY
  • Thomas LAMBERT
  • Laurent LASUDRY
  • Olivier SNICKERS
  • Sébastien VERBOIS

Previews

Preview 1

Preview 2

Preview 3

Preview 4

Contributors

Changelog

1.0.0a12 (2022-08-16)

  • Remove customized plone.allowed_sizes and plone.toolbar_position configurations. [sverbois]
  • Set boolean fields required option to False. [sverbois]
  • Require version 3 of collective.taxonomy and collective.z3cform.datagridfield. [sverbois]
  • Improve CSS for section full-width managment and card section edition. [sverbois]

1.0.0a11 (2022-03-26)

  • Add hide_title field on IPage. [sverbois]

1.0.0a10 (2022-03-26)

  • Allow BasicPage as default page type. [sverbois]
  • Remove layout name in item_lead_image_scale method. [sverbois]

1.0.0a9 (2021-12-30)

  • Allow Python 3.7 as Plone 6. [sverbois]
  • Use Plone 6 alpha 2 in development buildout. [sverbois]

1.0.0a8 (2021-12-22)

  • Use a collective.taxonomy to manage the available section CSS classes. [sverbois]

1.0.0a7 (2021-12-22)

  • Add model Archimate view. [sverbois]
  • Remove remote_url field on CardsSection. We can use the relation_uid field with a Link content. [sverbois]
  • Add a Card carousel view on sections. [sverbois]
  • Add container width option on sections. [sverbois]

1.0.0a6 (2021-12-20)

  • Use pat-sortable pattern to reorder sections in a page using drag and drop. [sverbois]

1.0.0a5 (2021-12-19)

  • Remove the use of accordion in edit forms. [sverbois]
  • Remove the row prototype. We want a KISS product. [sverbois]

1.0.0a4 (2021-12-19)

  • Add tags information in section view which contains context subjects field value. [sverbois]
  • Clean up the list of behaviours on content types. [sverbois]
  • Don't hide contentleadimage viewlet. [sverbois]

1.0.0a3 (2021-12-18)

  • Add a demo.json export of collective.exportimport with demo pages. [sverbois]
  • Clean use of default and missing_value field attributes. [sverbois]

1.0.0a2 (2021-12-17)

  • Add Event Page portal type. [sverbois]

1.0.0a1 (2021-12-17)

  • Initial release [sverbois]

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.contentsections-1.0.0a12.tar.gz (50.3 kB view details)

Uploaded Source

File details

Details for the file collective.contentsections-1.0.0a12.tar.gz.

File metadata

  • Download URL: collective.contentsections-1.0.0a12.tar.gz
  • Upload date:
  • Size: 50.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for collective.contentsections-1.0.0a12.tar.gz
Algorithm Hash digest
SHA256 d635b6ec4f00cda7041b8739a8027bbb1b271995ec75cf34194f7abcd077b276
MD5 6ef09bdef1ab171c77ef253ff72e5f4d
BLAKE2b-256 15e1d175a5f4a98807833079d5d837abae82b71a1b3a4ed525e24c653303b31c

See more details on using hashes here.

Supported by

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