[MAGNOLIA-2076] make Javascripts and Stylesheets configurable in repository Created: 25/Feb/08  Updated: 23/Jun/14  Resolved: 25/Nov/13

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Oliver Lietz Assignee: Oliver Lietz
Resolution: Outdated Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

allows embedding Javascripts (.js) and Stylesheets (.css) without touching templates when using JavascriptsTag and StylesheetsTag from cms taglib

  • JavascriptManager comes with a simple requires/dependency mechanism which allows ordering (needed for doa lightbox module which required loading of prototype.js, scriptaculous.js and lightbox.js in this particular order)


 Comments   
Comment by Oliver Lietz [ 25/Feb/08 ]

fixed on trunk (r14634)

Comment by Philipp Bracher [ 10/Mar/08 ]

Reopened as a module should be created. The functionality should eventually move to the templating module

Note that a very similar approach is taken in the 3.5 samples. (the dependencies are solved by ordering node)

Comment by Oliver Lietz [ 10/Mar/08 ]

I put the stuff in a separate module and moved it to de.oliverlietz.olivia.module.* namespace.
Ordering nodes doesn't help here, because javascript dependencies could be cross module, e.g. prototype.js and scriptaculous.js could stay in magnolia-gui and shared by other modules, e.g. my lightbox module.
The "group" feature was introduced as some libraries consist of several js and/or css files.

Generated at Mon Feb 12 03:33:10 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.