Skip to content

Instantly share code, notes, and snippets.

@KyleGobel
Last active August 29, 2015 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KyleGobel/131bcff3f566d55525af to your computer and use it in GitHub Desktop.
Save KyleGobel/131bcff3f566d55525af to your computer and use it in GitHub Desktop.

Example Code

<form action="http://www.metroeguide.net/meg_search/Search" method="get" target="_blank">
  <p align="center">  
    <input type="text" name="q" />
    <input type="hidden" name="clientId" value="459" />
    <input type="hidden" name="f" value="51,414,500"/>
    <input type="submit" value="Search" />
  </p>
</form>

Options

  • Client Id

Example: <input type="hidden" name="clientId" value="459" />

This line controls what client id to use for the search (this only effects how the link pages are displayed)

  • Folder Id

    Example: <input type="hidden" name="f" value="51,414,500"/>

    This line is contains the comma seperated list of folder ids that should be searched, in this case folders 51, 414 and 500

  • Page Format

    Example: <input type="hidden" name="pageFmt" value="http://pageFormatUrl/{pageid}/{clientid}" />

    This is an optional line that can be used to override the default page that is shown when click on page links.

    The default page link is http://metroeguide.net/iLinks/LinkPage.aspx#!/{clientid}/{pageid}. The {clientid} in the url will be replaced with the real client id and the {pageid} will be replaced with the page id being clicked.

    The use case for this would be if you wanted to use the search with the iLinks format, or the metroeguide format, or schools eguide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment