Had a client request to be able to, via the gui, export a piece of content and it's related content to an archive,
and then upload an import that content to another instance of the site.
This bypasses version control and such, but it's the requirements I was given. And it does come in handy.
Here is a work in progress but working patch to provide such functionality to default_content_deploy.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3070222-8.patch | 33.8 KB | kevinfunk |
Comments
Comment #2
thursday_bw commentedComment #3
thursday_bw commentedThis new patch adds to the existing patch. It imports the tar extract to a private temp store instead of overwriting the files in the deployed content directory.
(I am thinking that this should be it's own module instead of patch, as it seems default_content_deploy's use case is git managed deploy files.
whereas this bypasses git and deploys files manually).
In any case, this patch allows importing without needing to configure a content sync directory as the import is written temporally to the DB.
Comment #4
thursday_bw commentedwrong patch :(
again:
This new patch adds to the existing patch. It imports the tar extract to a private temp store instead of overwriting the files in the deployed content directory.
(I am thinking that this should be it's own module instead of patch, as it seems default_content_deploy's use case is git managed deploy files.
whereas this bypasses git and deploys files manually).
In any case, this patch allows importing without needing to configure a content sync directory as the import is written temporally to the DB.
Comment #5
ivnishComment #6
miroslav-leePatch did not apply.
Could you rework, please?
Comment #7
ivnishAnd we added tabs to configuration. Needs add new tab for "export"
Comment #8
kevinfunkPatch adds export form and export entity form with option to export as a tarball. It also adds the option to import from a tar file.
Comment #9
kevinfunkComment #10
miroslav-leeThank you a lot for your patch. This functionality is very cool.
But this patch has several problem:
1. The patch does not apply
2. Why did you add the default_content_deploy.settings.yml file?
You can use the getContentEntityTypes method of the DeployManager class
3. Why 2 routers (default_content_deploy.export_download and default_content_deploy.export)?
I think it can be combined.
Comment #11
kevinfunkdrupal/default_content_deploy": "1.x-dev#97ea1ae as 1.x-dev"right now. I'll work on it as soon as I can.Default Content Deploy is an integral part of my workflow and I plan to give back as much as possible.
Comment #12
avpadernoComment #13
miroslav-lee@kevinfunk That's great!
I plan to develop this module as much as possible.
In the last commit, I implemented export from the admin panel and upload it to the archive.
It remains to implement the import from this archive. And it will be ready very soon.
I invite you to our slack channel.
There we will be able to discuss this module in a fast format.
Comment #15
avpadernoComment #17
dexiecarla commentedPatch #8 cant be applied to latest version.
Comment #18
avpaderno@dexiecarla The 8.x-1.0-beta2 version doesn't need the patch, as it has been created after the patch was committed.