/content/edit
A view of the content module, defined in kernel/content/module.php and run by kernel/content/edit.php.
Address
/content/edit/<ObjectID>/<EditVersion>/<EditLanguage>/<FromLanguage>Ordered parameters, in this order after the view name: ObjectID, EditVersion, EditLanguage, FromLanguage.
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 | PreviewButton: Preview, TranslateButton: Translate, VersionsButton: VersionEdit, PublishButton: Publish, PublishNotNotifyButton: Publish, DiscardButton: Discard, BrowseNodeButton: BrowseForNodes, RemoveAssignmentButton: RemoveAssignments, EditLanguageButton: EditLanguage, FromLanguageButton: FromLanguage, TranslateLanguageButton: TranslateLanguage, BrowseObjectButton: BrowseForObjects, UploadFileRelationButton: UploadFileRelation, NewButton: NewObject, DeleteRelationButton: DeleteRelation, StoreButton: Store, StoreExitButton: StoreExit, MoveNodeID: MoveNode, RemoveNodeID: DeleteNode, ConfirmButton: ConfirmAssignmentDelete, SectionEditButton: SectionEdit, StateEditButton: StateEdit |
| POST actions | BrowseActionName |
| POST action parameters | EditLanguage (SelectedLanguage: EditSelectedLanguage), FromLanguage (FromLanguage: FromLanguage), TranslateLanguage (SelectedLanguage: EditSelectedLanguage), UploadFileRelation (UploadRelationLocation: UploadRelationLocationChoice), SectionEdit (RedirectRelativeURI: RedirectRelativeURI) |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/content/edit/1/1/editlanguage/fromlanguage'|ezurl>content/edit</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/content/edit/1/1/editlanguage/fromlanguage' );Related
Generated by ./console exp:help:examples from kernel/content/module.php, kernel/content/edit.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.