/class/translation
A view of the class module, defined in kernel/class/module.php and run by kernel/class/translation.php.
Address
/class/translationWho may open it
The view names no policy function, so the user needs a policy for the whole module: class/* (every function of the module) in one of the roles assigned to them.
Details
| Key | Value |
|---|---|
| Navigation part | ezsetupnavigationpart |
| UI context | edit |
| Single POST actions | CancelButton: Cancel, UpdateInitialLanguageButton: UpdateInitialLanguage, RemoveTranslationButton: RemoveTranslation |
| POST action parameters | Cancel (ClassID: ContentClassID, LanguageCode: ContentClassLanguageCode), UpdateInitialLanguage (ClassID: ContentClassID, LanguageCode: ContentClassLanguageCode, InitialLanguageID: InitialLanguageID), RemoveTranslation (ClassID: ContentClassID, LanguageCode: ContentClassLanguageCode, LanguageID: LanguageID, ConfirmRemoval: ConfirmRemoval) |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/class/translation'|ezurl>class/translation</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/class/translation' );Related
Generated by ./console exp:help:examples from kernel/class/module.php, kernel/class/translation.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.