-
Notifications
You must be signed in to change notification settings - Fork 0
S4 API
klavspc edited this page Jul 22, 2014
·
4 revisions
This is the interface of s4:
- s4Hit, The default onSelect function which is called when the user selects a result.
- Calls all listeners and
- (if no listener has returned false) marks the result in the map
- _s4Searchers, Array of searchers. Push a searcher to this array to make it active
- _s4OnSelect, Array of listeners to Select events.
- A listener is a function which is called with one argument: result.
- If a listener returns false the chain of listeners is stopped.
- If all listeners return true the default function s4Hit will be called as the last listener function
Before using the API please check that s4 has been included: [if: ModuleDefined("s4") ]
Please see How to use the datasource searcher for example of usage
S4
Home -> Article
Installation
Tips
- Custom CSS (Move the Search box)
- How to use an external database
- Presentations i s4
- Separate indexes for separate sites
Help
Extending s4