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

Support save and load emails #12

Open
bwl21 opened this issue Dec 4, 2015 · 9 comments
Open

Support save and load emails #12

bwl21 opened this issue Dec 4, 2015 · 9 comments

Comments

@bwl21
Copy link

bwl21 commented Dec 4, 2015

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.

@mherbold
Copy link
Contributor

mherbold commented Dec 4, 2015

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.

@bwl21
Copy link
Author

bwl21 commented Dec 4, 2015

Do you have an idea how to do this? Are you also using local storage for now?

@mherbold
Copy link
Contributor

mherbold commented Dec 7, 2015

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.

@bago
Copy link

bago commented Dec 7, 2015

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.

@NJseo
Copy link

NJseo commented Mar 7, 2016

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.

@bertasoft
Copy link

Ehi bago, can you post the plugin for save and load with backend? Thanks

@bago
Copy link

bago commented Apr 15, 2016

I cannot opensource that plugin, sorry.

@notchris
Copy link

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.

@bwl21
Copy link
Author

bwl21 commented Apr 21, 2016

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:

  1. list available emails
  2. open a particular email
  3. create a new email
  4. save a particular email
  5. delete a particular email
  6. rename a particujlar email
  7. clone a particular email

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

No branches or pull requests

6 participants