Possible to include items on a page based on a query rather than a list of objectIDs? #171
Replies: 3 comments 4 replies
|
@juliaflanders I think that the gallery.html include has the filter feature you are imagining! Let's say you wanted all the images with the subject "dog" it would look like:
|
|
@evanwill Thank you so much--I tried including this and the build failed; when I checked more closely it appears that the gallery.html code isn't included in the version of CollectionBuilder I'm using. I'm working with GH and it looks as if the gallery.html include is part of CSV. Is there a workaround? Apologies, I should have indicated which version of CB I was using in my original query. |
|
hi @evanwill, are there any updates about whether this is possible on CB-GH yet? Or is there another way to achieve the same/similar effect? I’m trying to display objects on subject specific pages – e.g. the “Awards” page would display all of the objects with the subject “awards,” etc. Or is it possible to filter by subject in timeline.html? I would like all of the objects on each page to be displayed in chronological order (using a text value field I’ve added called date_range, instead of the default date field). |
Uh oh!
There was an error while loading. Please reload this page.
I am just getting started with CollectionBuilder and am having a lot of fun :-) I am working on creating exhibits (narrative pages that contextualize items from the collection) and have been using feature includes (for example:
{% include feature/image.html objectid="coll016;coll012;coll037" %}) to include small sets of items. I am wondering whether it is possible to have a feature include that specifies objects via a query or parameter rather than a literal list of objectIDs. For instance, if I wanted to include all items that have a certain subject or location, is there a way to express that? I have looked through the list of feature includes and don't see it, but I imagine it might be possible if I were more familiar with Jekyll. Grateful for any pointers!All reactions