Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    May 22, 2012 @ 11:55
    Anthony Candaele
    0

    try to link to search page with altTemplate

    Hi,

    I'm trying to link to search results using the altTemplate syntax like this:

    http://localhost/altTemplate=Search?s=Prada

    The alias of my template is 'Search'

    But this doesn't seem to work

    Am I doing something wrong here?

    Thanks for your help,

    Anthony

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    May 22, 2012 @ 12:01
    Jeroen Breuer
    1

    The altTemplate is also a querystring so try this:

    http://localhost/?altTemplate=Search&s=Prada

    You can also get the altTemplate like this:

    http://localhost/Search?s=Prada

    Jeroen

  • Mike Chambers 621 posts 1203 karma points c-trib
    May 22, 2012 @ 12:03
    Mike Chambers
    1

    I think you are missing a ? eg altemplate= is a query string parameter

    Without testing... I think you may need to have....

    http://localhost/?s=Prada&altTemplate=Search

    eg the orignal page takes the s parameter and you are adding the altemplate paramater. (the orignal page parameters get passed onto the alttemplate I think)

    alternatively you can use the shortend version...

    http://localhost/?s=Prada/Search

    This may or may not work, I can't test currently.

  • Anthony Candaele 1197 posts 2049 karma points
    May 22, 2012 @ 13:42
    Anthony Candaele
    0

    Hi Jeroen, Mike

    Thanks for your help, I tried the url suggested by Jeroen and this works:

    http://localhost/?alttemplate=search&s=Lorem

    greetings,

    Anthony

  • 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