/visual/templatecreate
A view of the visual module, defined in kernel/visual/module.php and run by kernel/visual/templatecreate.php.
Address
/visual/templatecreate/(siteAccess)/<SiteAccess>/(classID)/<ClassID>/(nodeID)/<NodeID>/(objectID)/<ObjectID>Unordered parameters, in any order as /(name)/value: (siteAccess) sets SiteAccess, (classID) sets ClassID, (nodeID) sets NodeID, (objectID) sets ObjectID.
Who may open it
The view names no policy function, so the user needs a policy for the whole module: visual/* (every function of the module) in one of the roles assigned to them.
Details
| Key | Value |
|---|---|
| Navigation part | ezvisualnavigationpart |
| Single POST actions | CreateOverrideButton: CreateOverride, CancelOverrideButton: CancelOverride |
Example
A link in a template (ezurl adds the siteaccess and quotes the address); the parameter values are placeholders:
<a href='/visual/templatecreate'|ezurl>visual/templatecreate</a>
<a href=concat( '/visual/templatecreate/(siteAccess)/', 1 )|ezurl>visual/templatecreate</a>From PHP, the redirect a view gives after it has done its work:
return $Module->redirectTo( '/visual/templatecreate' );Related
Generated by ./console exp:help:examples from kernel/visual/module.php, kernel/visual/templatecreate.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.