/pdf/edit
A view of the pdf module, defined in kernel/pdf/module.php and run by kernel/pdf/edit.php.
Address
/pdf/edit/<PDFExportID>/<PDFGenerate>/(language)/<Language>Ordered parameters, in this order after the view name: PDFExportID, PDFGenerate.
Unordered parameters, in any order as /(name)/value: (language) sets Language.
Who may open it
The user needs this policy function:
A policy on pdf/* (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 |
| UI context | edit |
| Single POST actions | ExportPDFBrowse: BrowseSource, ExportPDFButton: Export, DiscardButton: Discard, CreateExport: CreateExport |
| POST action parameters | Export (Title: Title, DisplayFrontpage: DisplayFrontpage, IntroText: IntroText, SubText: SubText, ShowFooter: ShowFooter, FooterText: FooterText, SourceNode: SourceNode, ExportType: ExportType, ClassList: ClassList, SiteAccess: SiteAccess, DestinationType: DestinationType, DestinationFile: DestinationFile), BrowseSource (Title: Title, DisplayFrontpage: DisplayFrontpage, IntroText: IntroText, SubText: SubText, ShowFooter: ShowFooter, FooterText: FooterText, ExportType: ExportType, ClassList: ClassList, SiteAccess: SiteAccess, DestinationType: DestinationType, DestinationFile: DestinationFile) |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/pdf/edit/1/pdfgenerate'|ezurl>pdf/edit</a>
<a href=concat( '/pdf/edit/1/pdfgenerate/(language)/', 1 )|ezurl>pdf/edit</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/pdf/edit/1/pdfgenerate' );Related
Generated by ./console exp:help:examples from kernel/pdf/module.php, kernel/pdf/edit.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.