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

Use predefined values for site-sections in Prismic rather than tags #11271

Open
davidpmccormick opened this issue Oct 15, 2024 · 1 comment
Open

Comments

@davidpmccormick
Copy link
Contributor

What?

We're in the process of replacing /pages/ with whichever site-section a page has been tagged with in Prismic (#11248).

In the future, if we change our site-sections, this would require a migration to also update the associated tags.

A more future-proof to consider moving towards might be updating Prismic document content models to include a linked SiteSection where the vocabulary is controlled, and if an item is edited, that edit will automatically propagate to all necessary pages without requiring a migration.

Why?

Maintainability

@rcantin-w
Copy link
Contributor

I'm still into this idea but we'll have to see if we can still use a filter here to get the correct page Route: #11283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants