InMotion Hosting Support Center

The last use of $this in the Joomla 2.5 Beez2 template that will review is $this->direction. We can see it being used in the following section of code in the template's PHP file:

<html xmlns="" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >

When we look at the result of the following code in our Joomla 2.5 site's HTML, it looks like the following:

<html xmlns="" xml:lang="es-es" lang="es-es" dir="ltr" >

As you can see, $this->direction specifies the direction of text in the template. In our example, the value is ltr, left to right.

Continued Education in Course 219: Joomla 2.5 Template Development Tutorial
You are viewing Section 11: Joomla 2.5 Templates - $this->direction
Section 10: Joomla 2.5 Templates - $this->language
Section 12: How to add a new position to a Joomla 2.5 Template

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

Support Center Login

Social Media Login

Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


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:
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!