Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

/package/export

The view package/export: its address, parameters and the policy functions it needs.

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/module-views/package/export.md

On this page

/package/export

A view of the package module, defined in kernel/package/module.php and run by kernel/package/export.php.

Address

/package/export/<PackageName>/<RepositoryID>/(format)/<Format>

Ordered parameters, in this order after the view name: PackageName, RepositoryID.

Unordered parameters, in any order as /(name)/value: (format) sets Format.

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

KeyValue
Navigation partezsetupnavigationpart
UI contextedit

Example

A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:

<a href={'/package/export/packagename/1'|ezurl}>package/export</a>
<a href={concat( '/package/export/packagename/1/(format)/', 1 )|ezurl}>package/export</a>

From PHP, the redirect a view gives after it has done its work:

return $Module->redirectTo( '/package/export/packagename/1' );

Generated by ./console exp:help:examples from kernel/package/module.php, kernel/package/export.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x