Section 1: Joomla 2.5 Templates - defined('_JEXEC') or die
_JEXEC is a variable defined in Joomla's main index.php file. When you check if the variable has been defined yet, you can learn whether a file is being accessed directly or is being included as it should.
Hits: 6,887
Section 2: Joomla 2.5 Templates - $showRightColumn
The $showRightColumn variable has a 1 or 0 value. If there are no modules being loaded in the right column, it has a value of 0, or false. Likewise, if modules are being loaded, it has a value of 1, or true.
Hits: 4,082
Section 3: Joomla 2.5 Templates - $this->countModules('position-3')
The $this-countModules() function returns the total number of active modules for the given position. In this tutorial, we'll show you how it works.
Hits: 6,552
Section 4: Joomla 2.5 Templates - $this->params->get('templatecolor');
When using $this-params-get() in a Joomla 2.5 template file, you can call the value of a parameter set by the user for the template. For example, if your template allows the user to enter the background color of the template, using $this-params-get you can grab the color the user entered.
Hits: 13,211
Section 5: Joomla 2.5 Templates - JFactory::getApplication()
While JFactory::getApplication() can be used in many different ways, it appears it is only used in the Beez2 template to get the value of the site's title and description (which are Advanced Options) for the template.
Hits: 17,228
Section 6: Joomla 2.5 Templates - JFactory::getDocument()
In the Beez2 template, JFactory::getDocument is called in order to tell Joomla to include an additional javascript file in the page.
Hits: 8,431
Section 7: Joomla 2.5 Templates - $this->
The $this variable is used quite often in the Beez2 Joomla 2.5 template, and it references the JDocumentHTML Object.
Hits: 3,632
Section 8: Joomla 2.5 Templates - $this->baseurl
In this tutorial, we'll show you how to use the $this-baseurl variable within a Joomla template to reference your site's URL.
Hits: 16,449
Section 9: Joomla 2.5 Templates - $this->template
$this-template in a Joomla 2.5 template can be used to get the folder name of the current template, which is helpful for dynamically creating URLs to css and other files.
Hits: 6,105
Section 10: Joomla 2.5 Templates - $this->language
The $this-language variable in Joomla 2.5 can be used to reference the current language being used, such as en-gb or es-es.
Hits: 4,416
Section 11: Joomla 2.5 Templates - $this->direction
$this-direction in a Joomla 2.5 template gives you access to the direction text has been set to (for example ltr - left to right).
Hits: 2,058
Section 12: How to add a new position to a Joomla 2.5 Template
In the following Joomla 2.5 template tutorial, we'll show you how to add a new position to your template.
Hits: 10,769
Section 13: Joomla 2.5 Templates - $files = JHtml::_(stylesheet)
$files = JHtml::_(stylesheet) is used in our Joomla 2.5 template's index.php file as a method of loading a css file, general.css
Hits: 4,870
Write New!
Do you want to publish a tutorial to our support center?

News / Announcements

SSL Certficate Warnings
Updated 2014-04-14 11:34 am EST
Hits: 2166
Heartbleed 0-day OpenSSL security bug
Updated 2014-04-14 04:43 pm EST
Hits: 5553
Stack Exchange Q&A site proposal: Joomla

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!