-
Notifications
You must be signed in to change notification settings - Fork 34
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
Support save and load emails #12
Comments
Yeah this is something we want to do also. Storing the emails in cookies is not portable. I'd much prefer to be able to store it in a database so it can be shared by multiple users and can be retrieved on multiple devices. |
Do you have an idea how to do this? Are you also using local storage for now? |
We are still using Mosaico's default cookies storage. I have not looked into rerouting this data into a database back end yet. I suspect it will require some modification of the Mosaico base code itself but I haven't taken a look yet. |
Maybe it's not friendly, but you can do this without changes to Mosaico library: we use in production the same library and simply add our own "plugins" to deal with custom backend (salve, load, test). localstorage is a plugin that can be replaced by calling a different initialization method. |
When I click to download the HTML, it seems to goto a blank page at the dl/ folder. It would be nice if I could figure out how to pass it back to a textarea entry. |
Ehi bago, can you post the plugin for save and load with backend? Thanks |
I cannot opensource that plugin, sorry. |
In a workplace, I see no benefit to only providing localstorage as the method for saving. It would be much more useful to save emails to the backend. |
I think we need to respect that Bago cannot open source his solution. So let us contribute something of our own. First we need a specification of the interfaces, in particular of the server interface. I see the following usecases:
|
Even if the discussion on voidlabs/mosaico#50 did not come to an end, I open this issue to get support for storing/listing/retrieveing Newsletters (emails) by the mosaico-php-backend.
The text was updated successfully, but these errors were encountered: