/package/list
A view of the package module, defined in kernel/package/module.php and run by kernel/package/list.php.
Address
/package/list/<RepositoryID>/(offset)/<Offset>/(search)/<Search>/(type)/<Type>/(state)/<State>/(sort)/<Sort>/(dir)/<Dir>Ordered parameters, in this order after the view name: RepositoryID.
Unordered parameters, in any order as /(name)/value: (offset) sets Offset, (search) sets Search, (type) sets Type, (state) sets State, (sort) sets Sort, (dir) sets Dir.
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 | ChangeRepositoryButton: ChangeRepository, InstallPackageButton: InstallPackage, RemovePackageButton: RemovePackage, ConfirmRemovePackageButton: ConfirmRemovePackage, CancelRemovePackageButton: CancelRemovePackage, CreatePackageButton: CreatePackage |
| POST action parameters | ChangeRepository (RepositoryID: RepositoryID), RemovePackage (PackageSelection: PackageSelection), ConfirmRemovePackage (PackageSelection: PackageSelection) |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/package/list/1'|ezurl>package/list</a>
<a href=concat( '/package/list/1/(offset)/', 1 )|ezurl>package/list</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/package/list/1' );Related
Generated by ./console exp:help:examples from kernel/package/module.php, kernel/package/list.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.