Click
  1. Click
  2. CLK-329

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

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor 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

        Henri Yandell made changes -
        Project Import Fri Mar 20 14:11:32 PDT 2009 [ 1237583492744 ]
        Malcolm Edgar made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Hide
        Malcolm Edgar added a comment -

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

        regards Malcolm Edgar

        Show
        Malcolm Edgar added a comment - Fix checked in and will be available in release 1.5-M1. regards Malcolm Edgar
        Malcolm Edgar made changes -
        Fix Version/s 1.5 M1 [ 10010 ]
        Priority Major [ 3 ] Minor [ 4 ]
        Hide
        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
        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
        Malcolm Edgar made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        David Frizelle created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development