Titan-Framework icon indicating copy to clipboard operation
Titan-Framework copied to clipboard

Radium like One Click Demo Importer

Open ahmadawais opened this issue 10 years ago • 4 comments

For more theme authors to adopt Titan Framework you must provide Radium like One Click Demo Importer

Ref https://github.com/FrankM1/radium-one-click-demo-install

ahmadawais avatar Sep 03 '15 02:09 ahmadawais

Idea 1:

  • When WP_DEBUG is turned on during development (which people should do), add an export admin option that has fields for stuff like the preview image. Clicking on export should give out a zip file containing all the necessary stuff.
  • Add an import option for uploading a zip file

Idea 2:

  • When WP_DEBUG is turned on during development, add an export admin option that has fields for stuff like the preview image. Clicking on export should give out a json file containing all the exported stuff (including a base64 encoded image of the preview)
  • Add a new function $titan->createImportAdminPanel that accepts paths to to json files as arguments

bfintal avatar Sep 03 '15 02:09 bfintal

WP_DEBUG has no business here. People import demo data on production sites. Radium is pretty clean, I'd recommend you to implement it, only then will you be able to get most out of it. It's really just a class file with a folder and JSON + XML exported files.

ahmadawais avatar Sep 03 '15 02:09 ahmadawais

I'll check out Radium :)

bfintal avatar Sep 03 '15 02:09 bfintal

Is there any update about adding support for such demo importer like Radium for Titan?

mizpress avatar Nov 20 '17 11:11 mizpress