Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Craig100 1136 posts 2523 karma points c-trib
    Nov 16, 2018 @ 12:05
    Craig100
    0

    Moving CMSImported site to root

    Umb7.12.3 CMSImport V3.7.5

    On an upgraded staging site:-

    Home
        Node1
        Node2
    

    I had to import data from the older live site which then gave me:-

    Home
        Node1
        Node2
        Home
            Node1
            Node2
    

    I moved the new Home and children to the Content root and renamed the old Home as Home-Old:-

    Home
        Node1
        Node2
    Home-Old
        Node1
        Node2
    

    Now I have a problem that the new Home node's URL in it's "Info" tab is "/home/" and the Home Old node's URL in it's "info" tab is "/home-old". In a browser, if I go to "/" I get to /Home/home and see a 404 page, but if I go to /home-old I see the old properly formatted home page.

    I'm not sure what I need to do to fix this as ultimately I want the new home page to be the proper home page on "/" and delete the site based on the home-old page.

    I suspect I need to fiddle with a couple of Id's in the DB but would appreciate some advice.

    Thnx

    Craig

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Nov 16, 2018 @ 12:26
    Richard Soeteman
    0

    Hi Craig,

    Not sure what you mean? Can't you just move the nodes up one level? Or did you have some sort of urlalias on the old home node that makes sure the url is correct?

    Best,

    Richard

  • Craig100 1136 posts 2523 karma points c-trib
    Nov 16, 2018 @ 12:44
    Craig100
    0

    Hi Richard,

    No, there was nothing special about the original home page. It was just a single tenanted installation. The home page was accessible with "/" as normal. CMSImport imported the new site under the original Home page so I just wanted to make it the current home page so "moved" the newly imported site to be under the "Content" node which seems to have messed up both the URLs.

    This forum post seems to be a similar issue (https://our.umbraco.com/forum/umbraco-7/using-umbraco-7/66696-how-to-set-the-root-url-when-2-pages-on-root-level) but without a resolution. I seem to remember coming across this before using CMSImport because, as I understand it, it can't import over the root of an existing site to update it. So you have to allow it to import under an existing root, creating a new tree structure. I'm quite happy to admit it's only the second time I've used it and I might have misunderstood. I managed to import several thousand nodes with the right structure though so I was very pleased with that :)

    Craig

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Nov 16, 2018 @ 12:50
    Richard Soeteman
    0

    Hi Craig,

    Indeed CMSImport needs a root but can't you just move the child nodes one level up in that case? Or do you need to update regular?

    Best,

    Richard

  • Craig100 1136 posts 2523 karma points c-trib
    Nov 16, 2018 @ 13:41
    Craig100
    0

    Hi Richard,

    It's just a one-off update to get over some upgrade issues.

    What I wasn't sure about though is if CMSImport would create copies of existing nodes or just update existing ones. Also the UI seemed to lead me to select a Home node which is why it ended up as it did, i.e. the full site under a new home node under the original home node. I thought it would be easy just to move the new home node to the root so didn't question it really.

    How would you advise it be done?

    Craig

  • Craig100 1136 posts 2523 karma points c-trib
    Nov 16, 2018 @ 15:59
    Craig100
    0

    I reverted the site to how it was before the import and re-ran the import from the second level so avoid creating a new home page. It was to see whether CMSImport would create duplicate pages or update existing ones. Found it skipped all 2,600 pages.

    This is a typical line from the log:-

    CMSImport.Extensions.Providers.ImportProviders.ImportProvider   
    CMSImport:Record skipped during content import, Primary key '@id', primary key value '1246'
    

    Hopefully the graphic below shows enough config detail.

    CMSImport config

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Nov 19, 2018 @ 08:25
    Richard Soeteman
    100

    Hi Craig,

    Sorry for delay. This was propably because the selected rootnode was missing. and if you deleted the old imported documents the relation was gone also.

    I would just import everything under Home and then after import Move Home to the root.

    Hope this helps.

    Cheers.

    Richard

  • Craig100 1136 posts 2523 karma points c-trib
    Nov 19, 2018 @ 08:41
    Craig100
    0

    Hi Richard,

    The root node was still there but it just didn't pick anything up. Anyway, I did what you suggested in the end and it's all fine now.

    Thanks.

    Craig

  • Richard Soeteman 4049 posts 12922 karma points MVP 2x
    Nov 19, 2018 @ 08:59
    Richard Soeteman
    0

    Great to hear it's working now Craig.

    Best,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft