Click Framework  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: CLK-329
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Malcolm Edgar
Reporter: David Frizelle
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Click

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

Created: 06/Mar/08 12:36 PM   Updated: 06/Mar/08 02:10 PM
Component/s: core
Affects Version/s: 1.4
Fix Version/s: 1.5 M1


 Description  « Hide
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.

 All   Comments   Change History      Sort Order:
Malcolm Edgar [06/Mar/08 01:50 PM]
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 [06/Mar/08 02:10 PM]
Fix checked in and will be available in release 1.5-M1.

regards Malcolm Edgar