This pull request adds the ability to mark models as published & unpublished, with all the expected filtering of unpublished models in Antlers, the GraphQL API, Search, etc.
This might come in useful if you're using Runway to store some kind of content and you don't want to have to do all the filtering etc yourself.
To enable, simply add the published config option to a resource's config array, and either set it to true (which will assume the model has a published boolean column) or another column of your choosing.
This pull request adds the ability to mark models as published & unpublished, with all the expected filtering of unpublished models in Antlers, the GraphQL API, Search, etc.
This might come in useful if you're using Runway to store some kind of content and you don't want to have to do all the filtering etc yourself.
To enable, simply add the
published
config option to a resource's config array, and either set it totrue
(which will assume the model has apublished
boolean column) or another column of your choosing.This PR will be helpful when we introduce support for Revisions, which is coming soon, see #492.
Related: https://github.com/statamic-rad-pack/runway/discussions/294