Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-11741

Headerize external script in multi-block html template

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Implemented
    • Affects Version/s: Trunk
    • Fix Version/s: Upcoming Branch
    • Component/s: framework
    • Labels:
      None

      Description

      Allow external scripts within the multi-block html template, to be rendered within the html head tag, when a new attribute data-import is set to “head” e.g.

      <script src="/common/js/jquery/plugins/jsTree/jquery.jstree.js" type="application/javascript" data-import="head"></script>
      

      With the new feature we can define external scripts in the multi-block html template that is using the library, instead of setting in layoutSetting.javaScripts.

      This new feature helps with dependency management of Javascript and also reduce CSP errors.

        Attachments

        1. OFBIZ-11741.patch
          48 kB
          James Yong
        2. HtmlWidget.java.rej
          8 kB
          Jacques Le Roux
        3. OFBIZ-11741.patch
          48 kB
          James Yong
        4. OFBIZ-11741.patch
          69 kB
          James Yong

          Issue Links

            Activity

              People

              • Assignee:
                jamesyong James Yong
                Reporter:
                jamesyong James Yong
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: