-
Notifications
You must be signed in to change notification settings - Fork 63
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
Clone content to new tenant (first pass) #577
Comments
Notes to self: Projects that have been altered and need version bump:
I'm actually going to update everything that has a project reference to one of the above or one of the below as I can't work out the dependency chain!
|
An extra entry for navigation.xml between Privacy Settings and Content Settings: <NavNode key="ContentCloning"
controller="ContentCloning"
action="Index"
text="Content Cloning"
iconCssClass="fas fa-copy"
preservedRouteParameters="siteId"
componentVisibility="breadcrumbs,childtree,parenttree"
authorizationPolicy="AdminPolicy"
excludeFromSearchSiteMap="true">
<Children></Children>
</NavNode> |
All uploaded to nuget.org |
Tested with NoDb and Postgres in new cloudscribe projects from the template. |
Bug: the re-parenting after a clone is going wrong and dumping too many pages at root level - If the slug of a parent page is subsequently changed via the UI, its children just retain the old incorrect ParentSlug value (probably a bug in itself - unless there is some more complex reason for that...) So parentage needs to be established via Guids not slugs. I've got a candidate fix now - just needs testing etc. |
Also adding in a second change - cloning into a clean new site will now clear the navigation cache so that all the new pages show up in the nav immediately (otherwise the cache is pretty persistent, it seems). cloudscribe.Core.SimpleContent.6.0.5.nupkg |
Don't close yet - when used in a client site (insights) it failed to clone a sub-set of the pages, for some reason. |
A 'Clone site' tool to allow an admin to clone the current tenant site to a new (existing) tenant.
In due course we will make this part of a cloudscribe Core tenant clone tool, which creates the new tenant, but at this stage we will start with just the SImpleContent part and assume the new tenant has been created already.
Allow this tool to be plugged into navigation.xml, with its own view to ask for the destination site alias (NB).
Assume destination tenant is empty of SimpleContent data (as it certainly will be when this is called from a Core tool).
Do clone Content Settings.
Do clone Blog.
Do not clone content history - this doesn't belong in the destination.
Do not clone users, roles, policies, etc.
The text was updated successfully, but these errors were encountered: