Uploaded image for project: 'ContentBox Modular CMS'
  1. CONTENTBOX-767

Admin Layout - loop through jsFullAppendList uses the wrong src base

    Details

    • Type: Bug
    • Status: Resolved (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 3.0.0
    • Fix versions: 3.1.0
    • Components: Administrator
    • Labels:
      None

      Description

      File in question - HTMLBodyEnd.cfm

      <cfloop list="#event.getValue( "jsAppendList", "", true )#" index="js">
              <script type="application/javascript" src="#prc.cbroot#/includes/js/#js#.js"></script>
      </cfloop>
      <cfloop list="#event.getValue( "jsFullAppendList", "", true )#" index="js">
              <script type="application/javascript" src="#prc.cbroot#/includes/js/#js#.js"></script>    </cfloop>
      

      The jsFullAppendList should be the full path, not based inside the includes folder like the jsAppendList.

      <cfloop list="#event.getValue( "jsFullAppendList", "", true )#" index="js">
              <script type="application/javascript" src="#js#.js"></script>    
      </cfloop>
      

      This will make it match the corresponding CSS file in

      <cfloop list="#event.getValue( "cssAppendList", "", true )#" index="css">
              <cfset addAsset( "#prc.cbroot#/includes/css/#css#.css" )>
      </cfloop>
      <cfloop list="#event.getValue( "cssFullAppendList", "", true )#" index="css">
              <cfset addAsset( "#css#.css" )>
      </cfloop>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Gpickin Gavin Pickin
                Reporter:
                Gpickin Gavin Pickin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: