Copied to clipboard

Flag this post as spam?

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


  • Dan 6 posts 27 karma points
    Jan 07, 2014 @ 15:34
    Dan
    0

    Blog post urls after sorted into date folders

    Is there a way to prevent the extension from altering the url of the posts themselves when it sorts them? Can't see anything anywhere. Ideally the post names would remain 'http://domain/blog/post-name', rather than 'http://domain/blog/year/month/day/post-name'

    I'm sort of considering whether we need the extension afterall, how would I go about removing it? And would removing it affect the archive widget on the front end?

     

    --EDIT--

    I have found the option in uDateFoldersy.config to disable year folders, which has disabled the sorting of posts. In terms of blog links, I understand it is due to the node stucture but it would be good to know if it's possible to override the url of the post on sort.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jan 07, 2014 @ 16:20
    Anthony Dang
    0

    You're right when you disabled the date folders. You can actualyl delete the dll too.

    Blog posts are just umbraco nodes so the url structure will look like the content tree. You can add an alias if you want. http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlalias

     

     

  • Dan 6 posts 27 karma points
    Jan 07, 2014 @ 17:43
    Dan
    0

    Yeah, I'm sort of getting at that happening when udatefoldersy does it's magic. So, there could be a setting in the config that specifies the url structure, and it applies that as an alias on save perhaps?

    In our case, we have an old blog that we're bringing posts over from (and failing at as the import doesn't work, a seperate issue). For our customers we have to make sure our old posts still have the same url (bookmarking etc), the domain is ok, it's just what happens after that, domain/blog-post would now 404 as the post now lives at domain/year/month/day/blog-post.

    That url could change if somewhere down the line you decide you want the post date to be something else, so the url changes again as udatefoldersy sorts it into another folder, leads to confusion.

    I suppose a url rewrite would solve the issue, better than going through the posts applying an alias for every post individually.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jan 07, 2014 @ 18:55
    Anthony Dang
    0

    You could write an event hook which on save, will populate the umbraco url alias field with /blog/my-post-name

     

Please Sign in or register to post replies

Write your reply to:

Draft