Details
-
Type: New Feature
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.2.0
-
Fix Version/s: 3.3.0-b1
-
Component/s: None
-
Labels:None
Description
Plugins need the ability to inject markup into structure files. This should add a new event called Appcontroller.structure, triggered when a URI is requested by a method other than asynchronously (i.e. not AJAX).
Parameters include:
- controller The controller being invoked
- action The controller action being invoked
- portal ('client' or 'admin')
Return values include:
- An array containing key/value pairs to set in the structure file. Any variables can be set, but special keys include:
- head (string) Markup to set in the <head>
- body_start (string) Markup to set at the beginning of <body>
- body_end (string) Markup to set at the end of <body>
Each plugin must exercise care not to overwrite the return values set by prior executed plugins (e.g. append to head, body_start, etc.)
Issue Links
- relates to
-
CORE-1421 Update AppController.structure event to use arrays
- Closed