Objects, methods and properties available from your template
From Joomla! Documentation
According to <?php print_r($this); ?> in Joomla! 1.5.9, the object $this within the index.php file of a template looks like:
Object (
[_errors] => Array ( )
[title] => Article Title
[description] => Article Description
[link] =>
[base] => http://www.example.com/page-path-and-filename
[language] => en-gb
[direction] => ltr
[_generator] => Joomla! 1.5 - Open Source Content Management
[_mdate] =>
[_tab] =>
[_lineEnd] =>
[_charset] => utf-8
[_mime] => text/html
[_namespace] =>
[_profile] =>
[_scripts] => Array (
- [/test/media/system/js/mootools.js] => text/javascript
- [/test/media/system/js/caption.js] => text/javascript
)
[_script] => Array ( )
[_styleSheets] => Array ( )
[_style] => Array ( )
[_metaTags] => Array (
- [http-equiv] => Array (
-
- [content-type] => text/html; charset=utf-8
- )
- [standard] => Array (
-
- [robots] => index, follow
-
- [keywords] => page,keywords
-
- [title] => Article Title
-
- [author] => Article Author
- )
)
[_engine] =>
[_type] => html
[_buffer] => Array (
- [component] => Array (
- [] =>
- HTML page content
- )
)
[_links] => Array ( )
[_custom] => Array ( )
[template] => template_name
[baseurl] => /
[params] => Array (
- [template] => template_name
- [file] => this_filename.php
- [directory] => /full/system/path/to/this/template
)
[_file] => /full/system/path/to/this_filename.php
)
Examples
<link rel="stylesheet" href="<?=$this->baseurl ?>/templates/<?=$this->template ?>/css/template_css.css" type="text/css"/>