On a static page how can i show the name of the collection list (parent or folder) from each item…?
Please i really need help here…
How can i show on a static page within in a collection wrapper/list the name of the source (aka Collection List Name)…?
In this case i want to dynamically show “Journals” in my list…?
not the items or their names… the name of the collection list
That’s not a feature of Webflow.
Elements within a Collection list do not have access to the name of the Collection the list is bound to, they only have the content of the Collection item itself.
I’m not clear on what your use case is here, the normal situation would be that you know you’re bound to Journals, so you’d drop a text element in and give it the static content “Journals.” Nothing dynamic needed here.
For context here, the collection name isn’t considered content, in the same way a field name isn’t considered content. It’s there for administrative value.
Thanks Michael, my use case is that the collection itself is a type/category of entries which i would like to show in a list.
E.g. all my collections have a multireference to one tag collection. So when list by specific tags i could show/sort the collection name as well as a sort of type/category.
Could i get this information maybe by a javascript or withUrlParameters as the links cover the collection name?
As nearly as I can tell, you’d still always know what collection you’re linking to, because collection lists and collection pages are always bound to a single collection.
Adding a simple text element where you want it is still the easiest way.
Programmatically, if you emit the link to the current CMS item, you’d get a path that points to the collection page, and it would contain the collection’s slug. If you choose the slugs so that they match the name, your JS could turn some-collection
into Some Collection
for display purposes.