rc.tiles.collection
A tile that shows collection results with customizable layouts forked from collective/collective.tiles.collection
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 list
Installation
Install rc.tiles.collection by adding it to your buildout:
[buildout]
...
eggs =
rc.tiles.collection
and 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 IRcTilesCollectionLayer 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:
<browser:page
name="additional_renderer"
permission="zope2.View"
for="*"
class=".additional_render.View"
layer=".interfaces.ISomeBrowserLayer"
template="additional_render.pt"
/>
additional_render.py:
from Products.Five.browser import BrowserView
from rc.tiles.collection.interfaces import IRcTilesCollectionLayer
from zope.interface import implements
from rc.tiles.collection import _
class AdditionalView(BrowserView):
implements(ICollectionTileRenderer)
display_name = _("Another tile layout")
additional_render.pt:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
lang="en"
metal:use-macro="here/main_template/macros/master"
i18n:domain="rc.tiles.collection">
<body>
<metal:macro define-macro="collection-tile-macro">
...
</metal:macro>
</body>
</html>
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.collection
Issue Tracker: https://github.com/rogeriocdluiz/rc.tiles.collection/issues
Source Code: https://github.com/rogeriocdluiz/rc.tiles.collection
Credits
Developed with the support of:
Regione Emilia-Romagna supports the PloneGov initiative.
License
The project is licensed under the GPLv2.
Contribute
Support
If you are having issues, please let us know. We have a mailing list located at: project@example.com
License
The project is licensed under the GPLv2.
Contributors
Rogerio da Costa, rogeriocdluiz@gmail.com
Changelog
1.1.6 (2018-11-10)
added new renderer to no icon collection right align [rogeriocdluiz]
1.1.5 (2018-11-04)
added new renderer to no icon collection [rogeriocdluiz]
1.1.4 (2018-11-04)
adjusts in interfaces [rogeriocdluiz]
1.1.3 (2018-11-04)
[rogeriocdluiz]
1.0a1 (unreleased)
Initial release.
forked from collective/collective.tiles.collection [rogeriocdluiz]
Metadata
Release files for rc.tiles.collection 1.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rc.tiles.collection-1.1.6.tar.gz | 17.5 kB | Without provenance | Details for rc.tiles.collection-1.1.6.tar.gz |
Release files / rc.tiles.collection-1.1.6.tar.gz
| Download URL | rc.tiles.collection-1.1.6.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40c298678f2f8ae6ecdba63096592a5da9f0bdf4a0d1fcabbd2c1a575ffd77fe
|
|
BLAKE2b-256 checksum How to use checksums |
355194cf0ff9951347748d550025320827a41ff453ec8a0224c16fd88c32b431
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.4.2
|
Security for rc.tiles.collection 1.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.