Just a quick reference on how to include bootsrap in your custom Joomla! template the right way.
Simply add those two lines of code and the Joomla Core will include all the needed files automagically:
<?php JHtmlBootstrap::framework(); JHtmlBootstrap::loadCSS(true, $direction); ?>
You may replace $direction
with „ltr“ or „rtl“ according to your preferred text direction. (defaults to „ltr“)
Keep in mind, that this most probably won’t add the latest version of bootstrap.
In German:
Bootstrap zu eigenen Joomla! Templates hinzufügen
Ein kurzer Tipp, wie man bootstrap einfach und auf die richtige Art und Weise zu eigenen Templates hinzufügen kann.
Diese beiden Zeilen zum Template hinzufügen und der Joomla!-Core kümmert sich um den Rest.
<?php JHtmlBootstrap::framework(); JHtmlBootstrap::loadCSS(true, $direction); ?>
Die Variable $direction
sollte dabei mit „ltr“ oder „rtl“ ersetzt werden, je nach bevorzugter Textrichtung.
Man sollte dabei im Hinterkopf behalten, dass wahrscheinlich nicht die aktuellste Version geladen wird.