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 the database driver conditionally for specific collections #11

Open
nfragkos opened this issue Jan 9, 2021 · 5 comments
Open

Use the database driver conditionally for specific collections #11

nfragkos opened this issue Jan 9, 2021 · 5 comments
Labels
wontfix This will not be worked on

Comments

@nfragkos
Copy link

nfragkos commented Jan 9, 2021

Is it possible to have a custom entry class and use it only for a specific collection? I love the idea to have my pages on the filesystem but for a blog collection with thousands of entries to use the database.

@nfragkos nfragkos changed the title Use the database driver conditionally on specific collections Use the database driver conditionally for specific collections Jan 9, 2021
@edalzell
Copy link
Collaborator

edalzell commented Jan 9, 2021

Not possible yet, because all collections share the same repository, but I am trying to figure out how it all works so I can start down that path.

@nfragkos
Copy link
Author

nfragkos commented Jan 30, 2021

I really needed that functionality so I created an addon called Eloquenty. I currently marked it as pre-release as I'm looking for testers and feedback.

@ryanmitchell
Copy link
Contributor

Is this not what runway does? https://statamic.com/addons/double-three-digital/runway

@edalzell
Copy link
Collaborator

Is this not what runway does? statamic.com/addons/double-three-digital/runway

No, runway brings Laravel models into antlers and the CP, the other packages uses the db to store Statamic Entries.

@ryanmitchell
Copy link
Contributor

Yeah I guess it was more a question of why :)

If you want entries in the DB use this, if you want them "split" but the same format set up a database view, if you want different models use runway. Each to their own I guess :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

4 participants