Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation improvements #105

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Changelog
=========

4.0 (unreleased)
----------------

Breaking Change:

Expand All @@ -10,7 +11,7 @@ Breaking Change:


3.5.1 (2021-05-26)
----------------
------------------

- Updated de and ch-de translations
[agitator]
Expand All @@ -26,6 +27,9 @@ Breaking Change:
- Fix search which include the terms "and", "or" and "not"
[jeffersonbledsoe]

- Update ``plone.app.mosaic`` integration documentation with the
new ``Contentlisting tile`` feature (this needs ``plone.app.standardtiles`` >= 2.3.3)

- implement AJAX geoJSON feature (needs ``plone.patternslib>=1.2.2``)
[petschki]

Expand Down
14 changes: 8 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ source collection template and on the target page which shows the filtered resul
Mosaic Integration
------------------

The three tiles can be added within the Mosaic editor multiple times. Just select them in the ``Insert`` menu
and assign a collection to it. To show the results of the collection simply add a
``Existing Content`` tile which links to the same collection your filter tiles are assigned with.
If ``plone.app.mosaic`` is installed, enable the ``collective.collectionfilter tiles`` in the addon controlpanel.

TODO: right now the collection needs a default_view template, which wraps the result list with a unique selector
inside the ``#content-core`` container. so the collectionfilter can load the filtered result correctly from
the collection into the container inside the existing content tile.
Enable ``Layout View`` for your Collection.

Edit your Collection and add a ``ContentListing`` tile.

Make sure you add a unique **tile CSS class** to your ``ContentListing`` tile.
Comment on lines +54 to +58
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think collections are needed. Content listing tiles work by themselves so requiring the use of collections doesn't add anything does it? The original goal of mosaic was to phase out collections altogeather and just use pages with contenttiles.

To make this easier the following needs to be changed

  • Filters should not have to pick a target collection. Any mosaic page should be allowed.
  • content selector should default to the default ".contentlisting-tile".
  • fix the bug that sets the browser url to be the collection. It should be the current context all the time


Add multiples filter tiles and make sure you use the unique **tile CSS class** as ``Content CSS Selector``.


Geolocation filter support
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-r https://raw.githubusercontent.com/plone/buildout.coredev/5.2/requirements.txt
6 changes: 5 additions & 1 deletion test-5.0.x.cfg
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[buildout]
eggs-directory = ${buildout:directory}/eggs
download-cache = ${buildout:directory}/downloads

extends =
https://raw.githubusercontent.com/collective/buildout.plonetest/master/test-5.0.x.cfg
https://raw.githubusercontent.com/collective/buildout.plonetest/master/qa.cfg
Expand All @@ -18,9 +21,10 @@ test-eggs =
flake8-ignore = E501,E241

[versions]
setuptools =
zc.buildout =
setuptools =
pycodestyle =
lxml =
configparser = 3.8.1
coverage = >=3.7

Expand Down
2 changes: 1 addition & 1 deletion test-5.1.x.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ test-eggs =
flake8-ignore = E501,E241

[versions]
setuptools =
zc.buildout =
setuptools =
configparser = 3.8.1
coverage = >=3.7

Expand Down
4 changes: 2 additions & 2 deletions test-5.2.x.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test-eggs =
flake8-ignore = E501,E241

[versions]
#setuptools =
#zc.buildout =
zc.buildout =
setuptools =
coverage = >=3.7