includePJC Plugin

Allows including php, javascript, CSS and HTML in content. Based on includePHP version 1.1.1 for Joomla 1.5.


Note: for .js e .css, it include in head tag. HOW USE Configure relative path in property e insert tag in content:


HOW USE
Configure relative path in property e insert tag in content:

{php}code you want to execute;{/php}
{phpfile}relative/path/file.php{/phpfile}
{js}alert("Code you want to run");{/js}
{jsfile}relative/path/myjsfile.js{/jsfile}
{css}.csscode{];{/css}
{cssfile}relative/path/mycssfile.css{/cssfile}
{htmlfile}realative/path/file.html{/htmlfile}

CONFIGURATION

Open in administration "Extentions -> Plugin Manager" and edit property of plugin.

For example, If you enter in content this:
{cssfile}pippo.css{/cssfile}

When plugin find the css name, it construct the path of file with:

$mosConfig_live_site/$relpath/pippo.css

$relpath is the Relative Path in configuration.

Report

bycosmotopper on October 12, 2009
I was able to figure out how to make this work, but only after quite a bit of trial and error. The documentation (barely qualifies as such) is very confusing. I would strongly recommend a few examples, and a clear definition of the 'relative path' parameter. All that said, I have found this very useful. (Thank you!)