Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.3.0-b1
-
Fix Version/s: 3.3.0-b2
-
Component/s: None
-
Labels:None
Description
The AppController.structure event currently uses strings for each of the content update section, instead it should use an array to ease in appending data (and possibly modifying data).
For example, instead of:
$return_val = $event->getReturnVal(); if (!isset($return_val['body_start'])) $return_val['body_start']; $return_val['body_start'] .= "<p>stuff</p>"; $event->setReturnVal($return_val);
You should be able to:
$return_val = $event->getReturnVal(); $return_val['body_start'][] = "<p>stuff</p>"; $event->setReturnVal($return_val);
Issue Links
- relates to
-
CORE-1371 Event: Allow plugins to set markup in structure files
- Closed