Team23 External Sources

Print

Team23 External Sources

Developed by: Team23

Team23 External Sources gives you the freedom to add any external source, e.g. from a Content Delivery Network (CDN), to your Magento theme. This can be done easily via XML configuration or directly in PHP code.

Normally Magento does not allow full urls to add via XML or in PHP with addJs() or addCss(). Magento assumes that you provide a path within your Magento directory.

Now you have the possibility to add full path via PHP (with addExternalCSS() or addExternalJS()) or via XML configuration.

Features

Documentation & Integration

Install extension, go to System -> Admin -> External Sources, there you find the documentation.

PHP integration

$block->addExternalJs('//code.jquery.com/jquery-1.11.0.min.js');

$block->addExternalCss('http://fonts.googleapis.com/css?family=Droid+Sans:400,700');

XML integration

Please read the full documentation, or see attached screenshot for XML configuration.

Disabling extension

How to disable extension: Open /app/etc/modules/Team23_ExternalSources.xml, find true and change it to false.

License

This module is licensed under the MIT license.