Copied to clipboard

Flag this post as spam?

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


  • dillorscroft 198 posts 192 karma points
    Mar 18, 2009 @ 01:40
    dillorscroft
    0

    Nice URL Modification

    Hi,

    I have a simple structure shown below;

    www.name.com/customers/more-information/company-one
    www.name.com/customers/more-information/company-two

    The more-information 'page' is actually just a folder and is hidden in most areas of the site except the URL.

    Is it possible to set a flag in the page to ignore it when it comes to qualifying or generating the niceURL?

    Therefore they would become the following;

    www.name.com/customers/company-one
    www.name.com/customers/company-two

    Thanks

    DC.

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 18, 2009 @ 09:59
    Dirk De Grave
    1

    Hi Matt,

    I'm sure umbracoUrlAlias will do exactly what you need, but:

    - you'll need to provide the complete path 'customers/company-one'
    - you'll need to make sure not to have duplicate entries

    It can be done manually, or using an event handler that removes the more-information part of the url.

    Also, see http://www.netaddicts.be/blog/2009/3/8/umbraco-quick-tip-1-umbracourlalias-and-specifying-complete-new-path.aspx

    Regards,
    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft