Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/collective/collective.tiles.collection
A tile that shows a set of collection results with a customizable layout
https://github.com/collective/collective.tiles.collection
Last synced: about 1 month ago
JSON representation
A tile that shows a set of collection results with a customizable layout
- Host: GitHub
- URL: https://github.com/collective/collective.tiles.collection
- Owner: collective
- Created: 2016-08-18T13:58:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-07-15T16:29:34.000Z (5 months ago)
- Last Synced: 2024-11-02T17:36:37.602Z (about 1 month ago)
- Language: Python
- Size: 123 KB
- Stars: 1
- Watchers: 9
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
Awesome Lists containing this project
- awesome-plone - collective.tiles.collection - A tile that shows a set of collection results with possibility to choose (and develop) custom layouts. (Tiles)
README
==============================================================================
collective.tiles.collection
==============================================================================A tile that shows collection results with customizable layouts
Features
--------- Emulates the old portlet collection behaviors
- Mosaic-ready
- Additional css class field, to append a custom css class to the tile container
- Customizable layouts listInstallation
------------Install collective.tiles.collection by adding it to your buildout::
[buildout]
...
eggs =
collective.tiles.collectionand then running ``bin/buildout``
Usage
-----You can't use this tile without a tile manager (or maybe, you can if you create
new tiles manually in some specific context) like `Mosaic `_ or `redturtle.tiles.management `_When you try to create a new collection tile, you have a form like the portlet's one.
Customizable layouts
--------------------When you create/edit a collection tile, there is a field that allows you to select the final layout from a list.
This list is generated with a specific set of view that satisfy following rules:- The Class must implement **ICollectiveTilesCollectionLayer** interface
- In the Class there should be an attribute **display_name** with a human-readable title
- The template need to define a macro called **collection-tile-macro**This is an example:
`configure.zcml`::
`additional_render.py`::
from Products.Five.browser import BrowserView
from collective.tiles.collection.interfaces import ICollectionTileRenderer
from zope.interface import implements
from collective.tiles.collection import _class AdditionalView(BrowserView):
implements(ICollectionTileRenderer)display_name = _("Another tile layout")
`additional_render.pt`::
...
Translations
------------This product has been translated into
- Italian
Contribute
----------- Issue Tracker: https://github.com/collective/collective.tiles.collection/issues
- Source Code: https://github.com/collective/collective.tiles.collectionCredits
-------Developed with the support of:
* `Regione Emilia-Romagna`__
Regione Emilia-Romagna supports the `PloneGov initiative`__.
__ http://www.regione.emilia-romagna.it/
__ http://www.plonegov.it/Authors
-------This product was developed by RedTurtle Technology team.
.. image:: http://www.redturtle.it/redturtle_banner.png
:alt: RedTurtle Technology Site
:target: http://www.redturtle.it/License
-------The project is licensed under the GPLv2.