JIncludes




- Yes
• Create common HTML snippets to include in different articles (WYSIWYG editor friendly)
• Include PHP code and dynamically output contents in place
• Attach CSS files to single articles instead of putting the CSS code for all website's pages into only one stylesheet file (improving loading time and styling simplicity)
• Attach JavaScript files to single articles, with the same benefits.
Snippets are created on a sitewide basis and included with a {{keyName params}} syntax from inside articles' text. You can choose the keyName's for the snippets you create. The use of parameters and the "block matching" option allow very powerful content elaboration.
I hope, this will be fixed soon.
Hi! Thank you very much for the five stars!
I am trying to make everything right for the stable release, so I have opened a bug report for your problem at http://joomlacode.org/gf/project/jincludes/tracker/?action=TrackerItemEdit&tracker_item_id=26429 . Could you please go there and help me me identify your issue? Thank you very much again!
{{your key}}
Thanks a lot for this plugin!
Thank you for the review!
I take this chance to reassure everyone that JIncludes is not abandoned: bug reports and forum posts will receive quick reply and action, I'm here. I just don't have time to code new features, for the time being ;)
This plugin got me right on track with easy too... After spending a significant amount of time expirimenting with a few other plugins to add my HTML code unmodified to no success I finally came across JIncludes.
My search for code adding plugins is over - JIncludes has my vote all the way! Thanks for the great plugin which works great and very easy to use might I add.
Kind regards,
Randall Kowalenko
Also highly appreciated, the use of parameters.
Example:
{{URL www.joomla.org}}
can be processed:
// Link not to be shown in e.g. categories list
if (JRequest::getVar('view', 'default') == 'article'){
echo ''.$param.'';
}
Hint: the doc speaks of $params (which doesn't work) instead of $param which actually works. Also keep in mind, that the mentioned php-function split() is deprecated, use explode() instead.
Possible improvement: let the command-brackets be choosen through parameters.
Result: Big help for very individual tasks, that otherwise have no answer in classic Joomla. 5 points
I have used it for a Java Script embedded in HTML like this:
1. Download and install the plugin.
2. Enter in the Plugins Manager and search for "Content - JIncludes"
3. Enable the plugin
4. Edit the plugin
In the "Parameters" section, fill the fields as follows:
#1 key: YearsPassed
#1 type: HTML (input code)
#1 code:
// get number of years passed from 01 Jan 1991
var today = new Date(); // today
var di = new Date(1991,01,01,0,0,0,0); // 1991
document.write(today.getFullYear() - di.getFullYear());
5. Save
6. Edit an article and put the following text in:
In 1991 I was {{YearsPassed}} years younger.
7. Save the article and view the output page.
Thank you again. I will use this plugin for a lot of things...
Thank you for excellent plugin!!!
I'm in the habit of making a small donation on any module or plugin I find useful and has saved me hours or time. Couldn't find anything for Andrea, so I owe him a dinner.
It is a real time saver and for me worked "out of the box".
Thank you!!!
Superb!





