Skip to content
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

Cookbook Filtering collections: outdated id references #2343

Open
mrflix opened this issue Jun 28, 2024 · 1 comment
Open

Cookbook Filtering collections: outdated id references #2343

mrflix opened this issue Jun 28, 2024 · 1 comment
Labels
type: content 📝 Is content-related

Comments

@mrflix
Copy link
Contributor

mrflix commented Jun 28, 2024

I just stumbled upon this outdated info in the filter collections cookbook that pages, files and users fields store ids and emails instead of now uuids:

  • The pages field stores a single or multiple page ids
  • The files field stores a single or multiple file ids
  • The users field stores a single or multiple user emails
@distantnative distantnative added the type: content 📝 Is content-related label Jun 28, 2024
@mrflix
Copy link
Contributor Author

mrflix commented Jun 28, 2024

I was searching for a way to filter pages by category. The categories are organized as pages and the categories field is a pages file. In the category pages I show the pages with said category as a pages section and I remembered this simpler technique to filter the pages field: filter('categories', '*=', page.uuid)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: content 📝 Is content-related
Projects
None yet
Development

No branches or pull requests

2 participants