/package/view
A view of the package module, defined in kernel/package/module.php and run by kernel/package/view.php.
Address
/package/view/<ViewMode>/<PackageName>/<RepositoryID>/(type)/<Type>/(search)/<Search>/(limit)/<Limit>/(offset)/<Offset>/(file)/<File>/(as)/<As>Ordered parameters, in this order after the view name: ViewMode, PackageName, RepositoryID.
Unordered parameters, in any order as /(name)/value: (type) sets Type, (search) sets Search, (limit) sets Limit, (offset) sets Offset, (file) sets File, (as) sets As.
Who may open it
The user needs this policy function:
A policy on package/* (every function) also grants it; limitations of the policy (section, subtree, class ...) still apply where the view checks them.
Details
| Key | Value |
|---|---|
| Navigation part | ezsetupnavigationpart |
| Single POST actions | InstallButton: Install, UninstallButton: Uninstall, ExportButton: Export, ValidateButton: Validate |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/package/view/viewmode/packagename/1'|ezurl>package/view</a>
<a href=concat( '/package/view/viewmode/packagename/1/(type)/', 1 )|ezurl>package/view</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/package/view/viewmode/packagename/1' );Related
Generated by ./console exp:help:examples from kernel/package/module.php, kernel/package/view.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.