is not used any more and exists only for history. Post new tickets on the Github account. n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 13 years ago

Closed 10 years ago

#862 closed enhancement (fixed)

3rd party script easy integration

Reported by: dsdenes Owned by:
Priority: lowest Milestone:
Component: jelix Version: 1.1
Severity: minor Keywords:
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description (last modified by laurentj)

Would be great if integrating any type of 3rd scripts would be easy. There are many times that 3rd application comes with many mixed type file. In a template/controller if we wouldn't care about initilaizing the parts of the 3rd script separately (js, css, images), should initialize the script with one command.

For example a 3rd application: foo

  • lib/3rd/foo/bar1.js
  • lib/3rd/foo/bar2.js
  • lib/3rd/foo/bar.css
  • lib/3rd/foo/bar.php
  • lib/3rd/foo/_init.php

_init.php should see the response object and should call the corresponding methods like addCSSLink, addJSLink, require_once()


The php requirement should go into a new namespace.

jtpl_meta_html_html::3rd => j3rdParty::init3rd

Change History (3)

comment:1 Changed 12 years ago by laurentj

  • Description modified (diff)
  • Priority changed from normal to lowest

comment:2 Changed 10 years ago by laurentj

  • Status changed from new to confirmed

since, in the futur jelix 1.4, we can embedd css/js file directly in the module directory, the solution for the ticket is simply to create a module which embed all files of a library. (And with the futur new autoloading system, it will be very nice)

comment:3 Changed 10 years ago by laurentj

  • Resolution set to fixed
  • Status changed from confirmed to closed
Note: See TracTickets for help on using tickets.