Only show parent collections on browse collections page

I have collection tree installed on my Omeka classic site, and I want to only display parent collections (more specifically, collections that have no parents) on the browse collections page. Is it possible to do this with the “get_records” method? Or is there some other way to do it?

I’ve done it before actually on another site with a custom simple page, which used “get_records” to obtain all collections, then I filtered out all non-parent collections using an if statement to check each collection’s Dublin Core metadata. However, this page had no pagination, and it meant that I had to include metadata on each parent collection indicating it was a parent. It’s a very inefficient solution.

Is there a better way to do this?

This topic was automatically closed after 250 days. New replies are no longer allowed.