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 />

The administrator email is <?php echo $mainframe->getCfg('mailfrom');?><br />

This template is in the <?php echo $this->template?> directory<br />

The URL is <?php echo JURI::base();;?>

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


blog comments powered by Disqus
 

Joomlashack University!

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.

Get Joomla Tips by RSS or Email

 

Joomla 1.6 Book

Get the NEW Joomla 1.6 Book

The new 3rd edition of the best selling Joomla 1.6 book is now available.

New and updated, its everything you need to know about Joomla 1.6!

Get it now from Amazon!

jenbookJoomla! Start to Finish Book

When you're ready to take your Joomla sites to the next level, try Joomla! Start to Finish: How to Plan, Maintain and Execute Your Website.

 

 

Teaching Sells

Classic Blog Posts