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

          admin Paul Phillips created issue -
          cody Cody Phillips (Inactive) made changes -
          Field Original Value New Value
          Summary Add Event: Allow plugins to set javascript file in admin/client structure Add Event: Allow plugins to set markup in structure files
          cody Cody Phillips (Inactive) made changes -
          Description Plugins need to be able to load javascript in the structure of admin and client pages. Create an event to do so. Plugins need the ability to inject markup into structure files. This should update the Appcontroller.preAction event, by passing in parameters for:

          * controller The controller being invoked
          * action The controller action being invoked
          * portal ('client' or 'admin')

          Return values include:

          * vars (array) An array of key/value variable to set in the structure file.
          * 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>
          cody Cody Phillips (Inactive) made changes -
          Summary Add Event: Allow plugins to set markup in structure files Event: Allow plugins to set markup in structure files
          cody Cody Phillips (Inactive) made changes -
          Description Plugins need the ability to inject markup into structure files. This should update the Appcontroller.preAction event, by passing in parameters for:

          * controller The controller being invoked
          * action The controller action being invoked
          * portal ('client' or 'admin')

          Return values include:

          * vars (array) An array of key/value variable to set in the structure file.
          * 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>
          Plugins need the ability to inject markup into structure files. This should update the Appcontroller.preAction event, by passing in parameters for:

          * controller The controller being invoked
          * action The controller action being invoked
          * portal ('client' or 'admin')

          Return values include:

          * vars (array) An array of key/value variable to set in the structure file.
          * 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.)
          cody Cody Phillips (Inactive) made changes -
          Description Plugins need the ability to inject markup into structure files. This should update the Appcontroller.preAction event, by passing in parameters for:

          * controller The controller being invoked
          * action The controller action being invoked
          * portal ('client' or 'admin')

          Return values include:

          * vars (array) An array of key/value variable to set in the structure file.
          * 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.)
          Plugins need the ability to inject markup into structure files. This should update the Appcontroller.preAction event, by passing in parameters for:

          * 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.)
          cody Cody Phillips (Inactive) made changes -
          Description Plugins need the ability to inject markup into structure files. This should update the Appcontroller.preAction event, by passing in parameters for:

          * 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.)
          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 synchronously (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.)
          cody Cody Phillips (Inactive) made changes -
          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 synchronously (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.)
          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.)
          cody Cody Phillips (Inactive) made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          cody Cody Phillips (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          cody Cody Phillips (Inactive) made changes -
          Link This issue relates to CORE-1421 [ CORE-1421 ]

            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