| Template Names, Paths and Base URL for 1.5 Joomla Templates |
| Thursday, 06 September 2007 06:43 |
|
I was playing around with 1.5 templates after the release of the 2nd release candidate for Joomla 1.5. I thought I might share some basic PHP/Joomla references for common template outputs like template names, paths and base URL. If you want to to a quick test, create a very basic Joomla 1.5 template and then put this somewhere in the index.php file: The name of this site is <?php echo $mainframe->getCfg('sitename');?><br />
This shows you the various new cals that can be made in 1.5. A couple of people asked, so I have created a tiny installable debugging template for 1.5. This will install a template that has only 2 files, the index.php and templateDetails.xml. I removed references to other files to give a bare bones output with no CSS. This is actually a useful diagnostic template, you can install it and track errors that are occurring with a component or module. www.compassdesigns.net/joomla-library/joomla/debug-template-for-joomla-1.5.html |
If you want Joomla training delivered to the comfort of your own home, then you need to join Joomlashack University - an affordable online Joomla training course taught by the world's leading experts in Joomla education.