package templates templ CollectionRules(user User, collection CollectionData) {
⚡ Smart Rules evaluated live — the collection is always current, no refresh needed
A book is in the collection while it matches ANY enabled rule. Saving here takes effect immediately, everywhere the collection renders.
Add a rule to make this collection smart — it will then match the rule live, everywhere. Removing the last rule makes it static again.
Books that would be added by this rule:
Add all Science Fiction books
Field: genre
Operator: equals
Value: Science Fiction
Add books from a specific series
Field: series
Operator: starts with
Value: Harry Potter
Add books published in a year range
Field: copyright_year
Operator: greater than
Value: 2020