Skip navigation
A3_Aaron
Currently Being Moderated

Site Search Module Re-Direct

Aug 9, 2012 12:30 PM

Hi guys,

 

Wondering if there is a way of adding a 're-direct' code to the Site Search Module HTML code, so that people can enter info in the site search box, and rather than keeping them on the same page, it takes them to a new page.

 

Thanks,

Aaron

 
Replies
  • Currently Being Moderated
    Aug 9, 2012 12:34 PM   in reply to A3_Aaron

    Hi,

     

    you would need to add &PageID=/yoursubfolder/custompage(.html) to the search form action.

     

    Make sure to add {module_searchresults} to your custom page.

     

    Nicole - BCGurus.com

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2012 12:49 PM   in reply to A3_Aaron

    Exactly, just make sure you change my code sample to point to your site. And instead of having {module_searchresults} right with the search form, just take it off there and add it to the new page you want to direct the results to.

     

    Nicole - BCGurus.com

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2012 12:55 PM   in reply to Nicole - BCGurus.com

    Nevermind, I confused it a little bit, instead of &PageID=/yoursubfolder/custompage(.html) you need the ID for the page, i.e. &PageID=12910624, its a little hard to find but you can take a note of the ID when hovering over the new page under the Pages > Tree view in BC, the page ID will be shown on the bottom of the browser window (FF 14).

     

    Sorry for the confusion.

     

    Nicole - BCGUrus.com

     
    |
    Mark as:
  • Liam Dilley
    4,054 posts
    Feb 28, 2012
    Currently Being Moderated
    Aug 9, 2012 3:00 PM   in reply to A3_Aaron

    Nicole, You was right in the first place but you you said &PageID= for the url when in actual fact it is just ID.

     

    So, Aaron you do as Nicole said first (because it is easier) but use ID instead of PageID so..

     

    /Default.aspx?SiteSearchID=3510&ID=/yoursubfolder/custompage

     

    & is the HTML entitity for & and is better valid markup

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2012 3:27 PM   in reply to Liam Dilley

    You're right, works both. &PageID with ID, &ID with URL.

     
    |
    Mark as:
  • Liam Dilley
    4,054 posts
    Feb 28, 2012
    Currently Being Moderated
    Aug 9, 2012 4:00 PM   in reply to Nicole - BCGurus.com

    URL is easier to manage and find and follow though hey

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points