Profile clone module

SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
A while back I wrote a module which cloned a custom module item for moving between profiles. It was a bit of a pain to write, and whenever I added features to the module I needed to rewrite the cloning module. It created a zip file which could be uploaded to another profile and recreate the item (the item was complex with images, pages, text etc).

Now, with a differently structured site and different set of custom modules I need to do something similar, different but not a million miles away - basically create a backup of an entire profile and content to a different (new) profile.

Probably a total fantasy idea, but right now a profile clone module (clones items, media, settings, custom module items and media, everything) is something I'd like a lot!!!

It did occur to me that something like this might be possible using the DB Backup module, just change the profile id to a new one - is that something that anyone has tried already?

Thanks for any advice or info!


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 05/13/18 08:56:14PM
michael
@michael
6 years ago
7,717 posts
no real great ideas, but would look at the import module or the hosting transfer modules for structure hints, both of those would create profiles from data.
paul
@paul
6 years ago
4,326 posts
Checkout the Exporter and Importer modules. They don’t do exactly what you need as they work with all site profiles and items, not individual profiles, but may be adaptable.


--
Paul Asher - JR Developer and System Import Specialist
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
Ok, thanks Michael and Paul :)


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
paul
@paul
6 years ago
4,326 posts
The latest Exporter module now in the (beta) marketplace has a new field in the Jamroom Plugin Config section that allows a comma seperated list of profile IDs. If set, only those profiles and their contents will be exported to the json files.
hth


--
Paul Asher - JR Developer and System Import Specialist
SteveX
SteveX
@ultrajam
6 years ago
2,584 posts
Ok, thanks Paul :)


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags