addedValueMacros.searchPrefilledURL
Syntax
{addedValueMacros.searchPrefilledURL(formID, initialValues, reportID, sortedBy="", sortDirection="", resultsPage="") }
- formID - the name of a form defined with usage 'Indexed search'.
- initialValues - a string of ampersand delimited name=value pairs to be used to initialise the form elements.
- reportID - the name of a report that will display the hits.
- sortedBy - optional, the name of a variable to sort the hit list by
- sortDirection - optional, any string other than 'reverse' will sort ascending
- ResultsPage - the Manila shortcut of a page to receive the results.
Examples
| {addedValueMacros.searchPrefilledURL("siteSearch","body=query", "siteSearch", "searchResults")} |
http://www.addedValues.org/searchResults?customKey=S114084313&formid=siteSearch&reportID=siteSearch |
Semantics
searchPrefilledURL is a variant of addedValueMacros.searchPrefilled, that uses the values in initialValues to simulate entry by the user and perform the search. It returns the url to the page whose shortcut is in resultsPage, and which must contain a call to addedValueMacros.searchPrefilled with whatText false.
See also