/content/versionview
A view of the content module, defined in kernel/content/module.php and run by kernel/content/versionview.php.
Address
/content/versionview/<ObjectID>/<EditVersion>/<LanguageCode>/<FromLanguage>/(language)/<Language>/(offset)/<Offset>/(site_access)/<SiteAccess>/(view_mode)/<ViewMode>Ordered parameters, in this order after the view name: ObjectID, EditVersion, LanguageCode, FromLanguage.
Unordered parameters, in any order as /(name)/value: (language) sets Language, (offset) sets Offset, (site_access) sets SiteAccess, (view_mode) sets ViewMode.
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 |
| UI context | edit |
| Single POST actions | ChangeSettingsButton: ChangeSettings, EditButton: Edit, VersionsButton: Versions, PreviewPublishButton: Publish, PreviewPublishNotNotifyButton: Publish |
| POST action parameters | ChangeSettings (Language: SelectedLanguage, PlacementID: SelectedPlacement, SiteAccess: SelectedSiteAccess, ViewMode: SelectedViewMode) |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/content/versionview/1/1/languagecode/fromlanguage'|ezurl>content/versionview</a>
<a href=concat( '/content/versionview/1/1/languagecode/fromlanguage/(language)/', 1 )|ezurl>content/versionview</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/content/versionview/1/1/languagecode/fromlanguage' );Related
Generated by ./console exp:help:examples from kernel/content/module.php, kernel/content/versionview.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.