Copied to clipboard

Flag this post as spam?

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


  • John C Scott 473 posts 1183 karma points
    Jan 03, 2017 @ 12:01
    John C Scott
    1

    alt template URL rewriting

    I need to use Alt Templates (for a reason not worth going into the details).

    However rather than using ugly query string parameters it would be good to do some URL rewriting on it.

    So that eg :

    http://myusite.com/section/list/page?alttemplate=moredetails

    became

    http://myusite.com/section/list/page/moredetails

    However for the Content Editor I'd want to be able to create this document anywhere in the content tree rather than in a specific location.

    I'm trying to think of a simple way to do this, but I can't.

    Any ideas out there please!? Thanks in advance.

  • Chriztian Steinmeier 2800 posts 8791 karma points MVP 8x admin c-trib
    Jan 03, 2017 @ 12:07
    Chriztian Steinmeier
    101

    Hi John,

    The alttemplate syntax allows you to do that already (i.e., append the alias as another path step instead of a QueryString parameter)

    However I'm not sure how 2nd requirements impacts this... could you add an example or two of differently located documents and how you'd like their URLs to be?

    /Chriztian

  • John C Scott 473 posts 1183 karma points
    Jan 03, 2017 @ 15:06
    John C Scott
    1

    that works perfectly - thank you!

    presumably if you have a sub document (which I won't) that's is ok so long as the node name is not the same as the alttemplate

  • 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