/search/stats
A view of the search module, defined in kernel/search/module.php and run by kernel/search/stats.php.
Address
/search/stats/(offset)/<Offset>/(sort)/<Sort>/(show)/<Show>/(q)/<Query>Unordered parameters, in any order as /(name)/value: (offset) sets Offset, (sort) sets Sort, (show) sets Show, (q) sets Query.
Who may open it
The view names no policy function, so the user needs a policy for the whole module: search/* (every function of the module) in one of the roles assigned to them.
Details
| Key | Value |
|---|---|
| Navigation part | ezsetupnavigationpart |
| Single POST actions | ResetSearchStatsButton: ResetSearchStats |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/search/stats'|ezurl>search/stats</a>
<a href=concat( '/search/stats/(offset)/', 1 )|ezurl>search/stats</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/search/stats' );Related
Generated by ./console exp:help:examples from kernel/search/module.php, kernel/search/stats.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.