Skip to main content

An alternative method for handling and showing tiles

Project description

A tiles management system, easier than plone.app.mosaic that uses plone.app.tiles and Mockup functionalities to build a simple UI.

Features

  • Simple UI to add/remove/edit registered tiles

  • Tiles sorting with drag-and-drop (thanks to mockup)

  • Base view and macro to be reused in custom templates

Usage

To use this feature, you only need to do 2 simple steps:

  1. Make you view implements IBlocksTransformEnabled interface:

    from plone.app.blocks.interfaces import IBlocksTransformEnabled
    from Products.Five import BrowserView
    from zope.interface import implementer
    
    @implementer(IBlocksTransformEnabled)
    class MyView(BrowserView):
        ...
  2. use a specific macro in the template, where you want to insert the tiles:

    <tal:tiles metal:use-macro="context/tiles_view/macros/tiles-macro" />
  3. the used tiles need to expose their id to allows the UI to handle correct actions:

    <div data-tileid="${view/id}">
      .. your tile html
    </div>

The last point can be improved because with this restriction we can’t use standard tiles, but only custom tiles.

After this, you see a new “Add tile” button in the view, and clicking on it, you can see a list of available tiles.

Translations

This product has been translated into

  • Italian

Installation

Install redturtle.tiles.management by adding it to your buildout:

[buildout]

 ...

 eggs =
     redturtle.tiles.management

and then running “bin/buildout”

Contribute

License

The project is licensed under the GPLv2.

Contributors

Changelog

0.1.0 (2016-09-19)

  • Initial release. [cekk]

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

redturtle.tiles.management-0.1.0.tar.gz (23.1 kB view details)

Uploaded Source

File details

Details for the file redturtle.tiles.management-0.1.0.tar.gz.

File metadata

File hashes

Hashes for redturtle.tiles.management-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9f38150ec2d761cd22734fccc87c2d1b1fb1fa17fa1f6f341f4bcdee45df2cd5
MD5 9e7059dcbf2a668de55cf70ade702f54
BLAKE2b-256 b923fc80f657d864234c086c7de9fcdf2727f3dd97f68d6a2958b04b8bdabc56

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