Hello jean-claude,
thank you very much for your posting. But I need a way to clone only a site-package.
The Reason why I want to do this, is because the cloned site package should hold the same structure and elements as the original site. We only want to change some content.
At the moment I struggle with the import of the Sites.xml - I always get a parser Error
with the following steps I was abel to clone one of my Site Packages:
I’m sure there are quite a few steps to improve it - please let me know.
change to your neos folder which contains the flow-file
if you don’t know the names of your site-packages just check them with ./flow site:list
export the package you want to clone via ./flow site:export –site-node {sidenodename} –filename /path/Sites.xml –tidy
with the option tidy you get your xml well formated. This will also create a Ressource folder
You need a Site Package with the new Name - you can copy the one you want to clone or create a blank one with ./flow kickstart:site
Move your exportet Ressource folder and Sites.xml to your new Package in Resources/Private/Content
Change in you sites.xml the site tag with the attributes name, siteResourcePackageKey and SiteNodeName, then change the <node NodeName which are reference to you old package into the new one. As the last Step - remove all identifieres within any node tags
remove all caches either the hard way or with a flush
import your new package as a site with ./flow site:imort --package-key {newPackageKey}
add a domain to the new package with ./flow domain:add
Try to login - if you geht any error- you might need to make a ./flow node:repair and flush any caches again.
Thats the way it worked for me, if any of you have some tips please let me know.