addedValues Plugin

...Powerful Free! Database Expansion for Manila
logoBottle:

(1 or more words)


Get tropes here!
Click to see internals
Report bug


Jane Models

sitepic_janeModelsShowcase.jpg:
Viewable with Any Browser

Members
Join Now
Login

addedValueMacros.searchPrefilled

Syntax

{addedValueMacros.searchPrefilled(formID, initialValues, reportID, sortedBy="", sortDirection="", whatText="", resultsPage="", whatTarget=nil, anchor=nil, class=nil, title=nil, accesskey=nil, hreflang=nil, tabindex=nil, onmouseOver="", onmouseOut="", onClick="") }

Examples

{addedValueMacros.searchPrefilled("siteSearch","body=query", "siteSearch", whatText:"See results", "searchResults", whatTarget:"searchPage")} See results

Semantics

searchPrefilled is a variant of addedValueMacros.search, that uses the values in initialValues to simulate entry by the user and perform the search. If whatext = false, it returns the results as a string. Otherwise it returns a link to the results page whose shortcut is in resultsPage, and which must contain another call to addedValueMacros.searchPrefilled with whatText false.

The optional parameters whatTarget, anchor, title, title, accessKey, hrefLang, tabindex are only used if the result is a link and then they are used to build the link.

See also