Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1371

Event: Allow plugins to set markup in structure files

    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

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              cody Cody Phillips (Inactive)
              Reporter:
              admin Paul Phillips
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                27/Aug/14