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
Issues with dexterity collections and PTG #45
Comments
May I know how to use this file? @volkerjaenisch |
Just install collective.plonetruegallery . Then replace the collection.py file that lives in this package with the code shown above. |
Thanks for your reply, I am very new to this... Do you mean after replay the file then I can use the gallery view in plone 5 collection? |
Yes. We are using PTG with collections in Plone 5. You only need to replace this one file. If you get into problems feel free to ask. |
@volkerjaenisch I have follow the step you mentioned, buy the PTG gallery view still not show up in the selection list of my collections... any idea? |
The alternative is to use my fork of PTG:
|
@volkerjaenisch thanks for your help I try your method and now with collective.plonetruegallery 3.4.7.dev0 but there is no gallery view in the collection ... do i missed something my plone is Plone 5.0.6rc1 (5016) do I need to active "Archetypes Content Types for Plone" ? |
@volkerjaenisch and my plone.app.collection = 1.1.6 |
The Version number 1.1.6 should not be an issue. The entry: |
Tested with plone.app.collection = 1.1.6, works flawlessly. |
Thanks Traceback (innermost last):
|
Are you sure that you have only images (Type Image) and No PDF-Files etc. in the collection? |
Yes, 1 jpg can show with Album view. |
Can you please make sure that the alternative collectiv.plonetruegallery is really used:
|
Ok here is the result, I don't know why it error and not build sudo -u plone_buildout bin/buildout |
You have to enter the virtual environment first. If this fails please post the complete output |
It is working now, thanks alot. |
you are welcome |
I noticed some problems with dexterity collections from plone.app.contenttypes in Plone4.3 and Plone5. Namely they do not work anymore.
There are four problems:
See https://community.plone.org/t/where-is-defined-collection-getrawquery-and-how/1040 .
This leads to a stack trace.
I wrote a replacement to collection.py that fixes most of the problems but does not address all the corner cases. The code is ugly and obtains a monkey patch to change the get_subgalleries function of the basic_adapter. But it may be clear enough to show my intentions.
Also the code will not work with ATCollections - which is not a problem because this new adapter can be bound to the dexterity specific plone.app.contenttypes.interfaces.ICollection and live in friendly coexistence with the old adapter for ATCollections.
The text was updated successfully, but these errors were encountered: