Metainformationen zur Seite

Include own JS libraries and CSS files

LoxBerry allows to inject its HTML <head> tag to include own JavaScript libraries, and own CSS files. This is available with Perl and PHP.

LoxBerry Compatibility

This feature is available from Loxberry V1.2.4. Set the LB_MINIMUM parameter in your plugin.cfg if you are using this feature.

This feature is basicly thought to be used to include Javascript libraries to support your plugin, or own CSS stylesheets in a file.

Keep in mind that these files needs to be available in the browser by their web url, not their local path.

Also, do not include jQuery and/or jQuery Mobile, as there are used by LoxBerry by default. 

Of course, your injection is valid only inside of your plugin.

Perl

our $htmlhead = "<script src='....'></script>";
LoxBerry::Web::lbheader($template_title, $helpurl, $helptemplate);

It's essential to define the string with our. The $htmlhead needs to be assigned before the lbheader call. No special parameter for lbheader is required.

PHP

$htmlhead = "<script src='....'></script>";
LBWeb::lbheader($template_title, $helpurl, $helptemplate);

The $htmlhead needs to be assigned before the lbheader call. No special parameter for lbheader is required.