/content/view
A view of the content module, defined in kernel/content/module.php and run by kernel/content/view.php.
Address
/content/view/<ViewMode>/<NodeID>/(language)/<Language>/(offset)/<Offset>/(year)/<Year>/(month)/<Month>/(day)/<Day>Ordered parameters, in this order after the view name: ViewMode, NodeID.
Unordered parameters, in any order as /(name)/value: (language) sets Language, (offset) sets Offset, (year) sets Year, (month) sets Month, (day) sets Day.
Who may open it
The user needs this policy function:
A policy on content/* (every function) also grants it; limitations of the policy (section, subtree, class ...) still apply where the view checks them.
Details
| Key | Value |
|---|---|
| Navigation part | ezcontentnavigationpart |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/content/view/viewmode/1'|ezurl>content/view</a>
<a href=concat( '/content/view/viewmode/1/(language)/', 1 )|ezurl>content/view</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/content/view/viewmode/1' );Related
Generated by ./console exp:help:examples from kernel/content/module.php, kernel/content/view.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.