New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Best practice for adding collections which don't need routes or URLs

eric March 12, 2021 by eric


I have a few use-cases where we want to add collections for data but we don't need URLs for the entries in that collection.

We just want to access the data in templates and embed the entries on other pages.

For example:

  • A FAQ collection to embed a list of FAQs on the homepage.
  • A Pricing Plans collection to embed a list of prices on homepage.

What is the best way to handle this type of data? Should I still create collections for this type of data? If so, what's the best way to basically disable Routing & URLs for this type of data?

Thanks Eric

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
2 Replies