Copied to clipboard

Flag this post as spam?

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


  • Frederik Sørensen 16 posts 130 karma points
    Apr 05, 2016 @ 06:35
    Frederik Sørensen
    0

    Child nodes gets wrong URL's

    I hope this is in the right category, but i had gotten a weird problem lately that's not so easy to fix (Not for me though). On my school's website that i'm currently developing, when i'm searching on it on Google etc, i get some sublinks, that's fine but when i click on one of them somehow one of my child templates (I think that's what they're called) got the url from the category i placed it in, like this "Datariet.dk/Om-skolen/Personale" instead of just "Datariet.dk/Personale" and because the "Om-skolen" is there the page is literally broken. I hope i made the clearly enough as possible. BTW thanks ahead. :)

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Apr 05, 2016 @ 07:00
    Michaël Vanbrabandt
    0

    If I understand it clearly you have the following structure in your content section of Umbraco:

    Home
    |-- Om-Skolen
      |-- Personal
      |-- ...
    

    So what Umbraco does, is creating a url starting from the root node.

    So for your Personal page the url will be /Om-skolen/Personal which is correct. If you want the url to be /Personal only then you have to place this page directly under your home page.

    Then for the template it uses, you can see this on your Personal page at the right side under the tab Properties. There you have a property called Template.

    /Michael

  • Frederik Sørensen 16 posts 130 karma points
    Apr 05, 2016 @ 07:15
    Frederik Sørensen
    0

    You got it right! But isn't there a way to make folders then so there isn't like 6 root pages and 25+ child nodes on content tree? Sorry if i don't make any sense.

  • Michaël Vanbrabandt 863 posts 3348 karma points c-trib
    Apr 05, 2016 @ 07:18
    Michaël Vanbrabandt
    100

    View my solution with steps and documentation here on stackoverflow:

    http://stackoverflow.com/questions/31548497/create-folder-structure-to-organize-content-in-umbraco

  • Frederik Sørensen 16 posts 130 karma points
    Apr 05, 2016 @ 07:55
    Frederik Sørensen
    0

    Thank you for your help, i really appreciate it. :)

Please Sign in or register to post replies

Write your reply to:

Draft