Willem Bonekamp wrote:
Thanks Michael !
I tried this module but unfortunately you can only share users/modules and not the pages.
This doesn't do the trick for me but thanks anyway!
The pages are in the same DNN instance so it must be possible to mave them to another portal.
Isn't this possible in datadase, SQL query?
Anyone?
Willem,
that's waht I meant when I wrote that you cannot import a complete tree.
If you just want to move them (and not keep them in the same portal) this should be possible in doing that inside the database, but I would suggest to do it in a testing environment first. The following is only a guess, don't blame me if it is wrong - please test before you do it in a production environment, make a lot of backup and restores and try to find an SQL statement that does it.
First thing to change is to update the PortalID column in the Tabs table. Then you should check the TabUrls table, and the TabPermission table. Make sure that all UserIDs and RoleIDs exist in the second portal, and that the users affected belong to the same groups as in the first portal. The users should be the smaller problem, either use portal groups or add a record with the UserID and PortalID in the UserPortals table. The link between users and groups can be found in the UserRoles table. Also check the ModulePermissions table under the same point of view.
After you have done this, you should recycle the application pool to clear the cache and then see if it works. I cannot guarantee that this will work, maybe I ahve forgotten other tables that could be affected (e.g. there are modules that are using the data based on the PortalID and not ModuleID, such as Blog - then you have to change the PortalID in the corresponding tables from the module as well).
Could be a lot of work... Let me know if you need help.
Happy DNNing!
Michael