-
Notifications
You must be signed in to change notification settings - Fork 45
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
[Question] How can I display the name of the current collection in a listview page? #918
Comments
The Listview-Controller provides such information via the It would be required add something like the snippet shown below to the template - but with a lot collections this information block might grow huge. And of course it needs to be styled in your CSS somehow. I can only speak for certain that it works for the current master branch (not the last release). The current master has already the changes to the collection-plugin that i wrote. This being said i am not sure if the last release already returned a list of collections or just a single item. There were several severe bugs, that made collections not reliable or functional back then. \Resources\Private\Templates\ListView\Main.html
|
I am working with the 4.x branch, but |
You are right, i am sorry! I have mistaken a local adjustment as part of the actual branch. You are right, there is no
Then call it in the template as i stated above... If you consider it an expected feature, it would be worth discussing if it should be an option in the listview-plugin. |
Thanks a lot! That helped me! For me, it would be an expected feature of the ListView plugin. It would be a simple straightforward way to display the data entered to a collection. I can put together a PR, then feel free to discuss it there. |
Just a few small corrections in case someone wants to use this as example
|
idea from @michaelkubina see: kitodo#918
There are two different templates for the ListView in Kitodo.Presentation:
The former is used as a default for any kind of list, that does not have its own template assigned. This template does not contain any information about collections. (At least this is how it should be working. If it's not, that's a bug...) |
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
idea from @michaelkubina see: kitodo#918
When a collection is clicked on a page that contains a collection list (plugin: Collection), a normal ListView is called.
Currently, however, it is not visible in this ListView page that it was called via the link of a collection.
In the contained Typo3 variables it can be recognized via
lastSearch[collection]
that the template was called via a collection link, but instead of the collection name only the collection number is contained (i.e. the ID in the Typo3 database).Is there a possibility to output the data of the collection list, especially display label, description, thumbnail, also in the ListView of a collection?
The text was updated successfully, but these errors were encountered: