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

Ticket #862 (closed enhancement: fixed)

Opened 6 years ago

Last modified 3 years ago

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) (diff)

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()

jelix/utils/j3rdParty.class.php::init3rd

The php requirement should go into a new namespace.

jtpl_meta_html_html::3rd => j3rdParty::init3rd

Change History

comment:1 Changed 5 years ago by laurentj

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

comment:2 Changed 3 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 3 years ago by laurentj

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