219: Joomla 2.5 Template Development Tutorial
| 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: 3,258
|
|
| 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: 1,941
|
|
| 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: 3,140
|
|
| 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: 6,173
|
|
| 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: 7,499
|
|
| 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: 4,331
|
|
| 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: 1,499
|
|
| 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: 9,723
|
|
| 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: 2,126
|
|
| 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: 2,061
|
|
| 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: 928
|
|
| 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: 4,649
|
|
| 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: 2,668
|
Latest Questions
If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Recent Questions- i want to create a report in moodle 2.5 that has field like name , coasre name, marks obtained , prcentage, grade and also want download from moodle in excel format plese reply me procedure thks in advance
- i want ocreate a costom report that has field name , coarse ,marks , percentage
- Multiple websites and their folders
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 |

