Copied to clipboard

Flag this post as spam?

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


  • anthony hall 222 posts 536 karma points
    Feb 19, 2010 @ 17:27
    anthony hall
    0

    incorrect "Link to document"

    Currently one of my content node is displaying an incorrect "Link to document"

    My tree looks like this

    - Content

    - Home (/home)
    - Films (/home/films)
    - Features (/features)

    As you can see films is displaying the wrong link to doc. I have republished, reindex, delete umbraco.config, delete content inside of  "_systemUmbracoIndexDontDelete"

    How is this value generated?

  • dandrayne 1138 posts 2262 karma points
    Feb 19, 2010 @ 17:53
    dandrayne
    1

    There is a setting in umbraco settings.config for

    HideTopLevelNodeFromPath

    This should be true, and you should see this go agaw

    Dan

  • anthony hall 222 posts 536 karma points
    Feb 19, 2010 @ 18:06
    anthony hall
    0

    yeah, i found that property in web.config

       <add key="umbracoHideTopLevelNodeFromPath" value="true" />

    I changed it to false and link to doc = "1079" which is the correct id. 

    I then changed it back to true and link to doc = "home/films" which is incorrect.

    @dan : maybe your thinking of another property in "umbracosettings.config?" 

    I should prefix all this by saying that it was all working correctly until an editor accidentaly deleted home. Which is the cause of this mix up. 

     

     

  • anthony hall 222 posts 536 karma points
    Feb 19, 2010 @ 21:04
    anthony hall
    0

    OK, i see what happened. Somehow the "path" field in the umbracoNode table got out of sync. Easy fix

    UPDATE umbracoNode

    SET path = '-1,1044,1079'

    WHERE id = 1079


  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Feb 20, 2010 @ 09:41
    Douglas Robar
    0

    Remember that umbraco re-calculates the node's url when you publish it (or move it via the ui). So rather than a database hack, perhaps you could have simply opened the page for editing and then published it again? Or perhaps right-click the home page and republish it and all its children?

    An idea for the next person having a similar issue :)

    cheers,
    doug.

  • anthony hall 222 posts 536 karma points
    Feb 20, 2010 @ 21:02
    anthony hall
    0

    oh i spoke to soon. As doug saids usually "Link to document" issues are resolved by republishing. I've republished serveral times and am still having this issue

    The content in bold is displaying the wrong address. 

    content
    - home
    - films
    - A ( /home/films/a )  // incorrect
    - B ( /films/b )   // correct

    I've look in the umbracoNode table and the path seems correct (-1,-20,1044,1079,1259)

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Feb 20, 2010 @ 22:42
    Douglas Robar
    101

    AHA!

    "-20" is the recycle bin. You should NEVER see that in a path or a "live" node in the content tree.

    "-1" is the content tree so all "live" pages should have a -1 in them.

    So, somehow the page was in the trash and moved back, maybe moved again, who knows how, and now it's confused.

    There was a problem with restoring from the recycle bin a year or so ago in a specific version of umbraco (I think it was a v3 version but I don't recall off the top of my head).

    cheers,
    doug.

  • anthony hall 222 posts 536 karma points
    Feb 20, 2010 @ 23:42
    anthony hall
    0

    wow, thanks doug. Made my day :)

    All is working correctly. I suspect my app is throwing exceptions where i publish ( a job for monday )  

    I was able to fix this when some like the following. Obviously try this out a test installation first. 

    update umbracoNode set path = replace(path, '-1,-20,1044,1079,', '-1,1044,1079,') where path like '-1,-20,1044,1079,%'

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies