Copied to clipboard

Flag this post as spam?

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


  • Stephen Kiers 41 posts 62 karma points
    Aug 17, 2010 @ 09:09
    Stephen Kiers
    0

    URL Rewriting and Advanced Macro Parameters

    I am using Umbraco URL rewriting to make some pretty SEO URLs for a website.

    OldURL : http://mydomain.com/photogallery.aspx?album=TestAlbum&picture=12

    NewURL : http://mydomain.com/photogallery/TestAlbum/12

    And it works. Problem is my Macro controlling the page depends on the querystring values.

    <umbraco:Macro album="[@album]" picture="[@picture]" test="Hello World" Alias="GalleryController" runat="server"></umbraco:Macro>

     

      <xsl:value-of select="/macro/test"/>:
      <xsl:value-of select="/macro/album"/>:
      <xsl:value-of select="/macro/picture"/>

    the OldURL works, returning "Hello World: TestAlbum : 12"

    The NewURL returns "Hello World : : "

    Any tips/ideas how to force this to work? I am loving the NiceURLs and UrlRewriting; but these little (often simple) hangups are driving me insane.

  • Stephen Kiers 41 posts 62 karma points
    Aug 17, 2010 @ 09:13
    Stephen Kiers
    0

    I don't know why but it is formatting my post URLs weird.

    Should be

    OldURL : http://mydomain.com/photogallery.aspx?album=TestAlbum&picture=12
    NewURL : http://mydomain.com/photogallery/TestAlbum/12
  • Stephen Kiers 41 posts 62 karma points
    Aug 17, 2010 @ 09:19
    Stephen Kiers
    0

    Don't answer this yet; I think I am actually just crazy (and that it is 1:20 am doesn't help) and there is no problem....

     

    My bad....

  • 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