Is there a way to clone or duplicate a singleton structure like you can with a collection?
See:
Its unfortunate there’s no easy way because I’m having so much fun with singletons now but what a pain to keep making these fields over a d over.
I’ve tried duplicating the file from inside the singleton folder but the singleton doesn’t appear in the dashboard? Is there something else that needs to be done along side that?
Did you change the name and the id in the copied singleton defintition file, too?
Did you change the name and the id in the copied singleton defintition file, too?
Yes. It still doesn’t show in the dashboard. Would you have to also duplicate it somehow in the db? Doesn’t it store it somehwere beside just a php file?
Oh, it’s working now! When I renamed, at one point I missed keeping the .singleton one time and another time I had the name different than the saved id.
But is that really all it takes, so the data and structure is not saved in a db just this php file? That would be super easy.
The structures of collections and singletons are stored in php files. It’s that easy
The data/input of singletons is stored in the database. If you want to transfer the data, you have to copy the db files or export/import it.