Uploaded image for project: 'Click'
  1. Click
  2. CLK-329

Allow pages to add imports (js, css etc) in a similar way that controls do

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5 M1
    • Component/s: core
    • Labels:
      None

      Description

      Say there is a css or js file I want included on a certain page or set of pages, it would be nice if I could override a method and put the data in.

      output the css and js after the controls css and js so that the js has access to the addLoadEvent function. Page css should come after control css.

      This way all js and css would be defined consistently.

        Activity

        Hide
        medgar Malcolm Edgar added a comment -

        This feature was prototyped during the PerformanceFilter development but I could not identify a use case for this. But the scenario of a Page with a BorderTemplate is a good use for this, ie you dont want to clutter up your border-template.htm file with a bunch of Page specific include code.

        This would be done by adding the Control getHtmlImports() methods to the Page class, an using it in a similar way inside the PageImports class.

        regards Malcolm Edgar

        Show
        medgar Malcolm Edgar added a comment - This feature was prototyped during the PerformanceFilter development but I could not identify a use case for this. But the scenario of a Page with a BorderTemplate is a good use for this, ie you dont want to clutter up your border-template.htm file with a bunch of Page specific include code. This would be done by adding the Control getHtmlImports() methods to the Page class, an using it in a similar way inside the PageImports class. regards Malcolm Edgar
        Hide
        medgar Malcolm Edgar added a comment -

        Fix checked in and will be available in release 1.5-M1.

        regards Malcolm Edgar

        Show
        medgar Malcolm Edgar added a comment - Fix checked in and will be available in release 1.5-M1. regards Malcolm Edgar

          People

          • Assignee:
            medgar Malcolm Edgar
            Reporter:
            dfrizelle David Frizelle
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development