Ticket #862 (closed enhancement: fixed)

Opened 4 years ago

Last modified 17 months ago

3rd party script easy integration

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

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

Changed 3 years ago by laurentj

  • priority changed from normal to lowest
  • description modified (diff)

Changed 17 months 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)

Changed 17 months ago by laurentj

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