Copied to clipboard

Flag this post as spam?

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


  • Denis 25 posts 267 karma points
    Aug 23, 2016 @ 06:20
    Denis
    0

    Overwriting URL to documents

    Hello!

    I have created following documents structure:

    Documents structure

    So I have following URL: /articles/section-1/section-1-2/article-1-1

    But I need that URL looks like: /articles/article-1-1

    How can I achieve this in Umbraco?

    My aim is to decrease URL nesting.

    Thanks.

  • Olov 27 posts 101 karma points
    Aug 23, 2016 @ 07:00
  • Denis 25 posts 267 karma points
    Aug 23, 2016 @ 07:35
    Denis
    0

    Thanks for advice, but I need that "Link to document" would be setted like I had described above. I need something like umbracoUrlName.

  • Olov 27 posts 101 karma points
    Aug 23, 2016 @ 09:43
    Olov
    100

    I believe you can accomplish what you want by implementing your own IContentFinder (incoming request) and IUrlProvider (outgoing url).

    http://24days.in/umbraco/2014/urlprovider-and-contentfinder/

  • David Brendel 792 posts 2970 karma points MVP 3x c-trib
    Aug 23, 2016 @ 12:11
    David Brendel
    0

    Hi Denis,

    I would also go for the UrlProvider and ContentFInder route.

    With the UrlProvider you would skip out the section-1-2 part and with the content finder you would search at the right location for it to get the actuall node.

    I have done this to add stuff into an url and skip it when finding content and it works quite well.

    Regards David

Please Sign in or register to post replies

Write your reply to:

Draft