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

"export your site’s content to json files for multiple re-use" How? #20

Closed
djowett opened this issue Jul 20, 2015 · 5 comments
Closed

Comments

@djowett
Copy link
Contributor

djowett commented Jul 20, 2015

@thet do you mind adding a hint / link on how to use json files?

@idgserpro
Copy link
Member

@djowett You can try to do the following, at least for archetypes (dexterity may be similar but I haven't tested it):

  • Add collective.jsonify to your installation;
  • Create your content normally through the web interface in a Vanilla Plone Site;
  • Use the External Method "export_content" from jsonify (check it's documentation to know how to add them) to export what you want to json;
  • Put all these jsons inside a folder in your package;
  • Create a transmogrifier similar to this one presented in an issue in collective.jsonmigrator (this is just a simple example, other blueprints may be needed for your situation). Remember to call the transmogrifier in setuphandlers (or other place in your code) like it's said in the issue, and to add collective.jsonmigrator as a dependency in the package you want to import the jsons.

...but to work flawlessly this way, we need a new release of collective.jsonmigrator. Can you help us there somehow?

@thet
Copy link
Member

thet commented Oct 22, 2015

I've created a repo, which much of my transmogrifier experience. That worked for a recent migration project
I had the code within another package and externalized just now, so don't expect that to work in the current state.
A little HowTo use is in the readme.

https://github.com/thet/programmatic.transmogrifier

hope that helps

@thet
Copy link
Member

thet commented Oct 22, 2015

New releases:

  • collective.jsonify
  • mr.migrator

Needs new releases:

@lentinj
Copy link
Contributor

lentinj commented Oct 22, 2015

Done.

@ericof
Copy link
Member

ericof commented Oct 25, 2015

Done

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

5 participants