Joomla 2.5 Templates – $this->direction Updated on August 16, 2021 by Brad Markle 0 Minutes, 38 Seconds to Read 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="https://www.w3.org/1999/xhtml" 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="https://www.w3.org/1999/xhtml" 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. Share this Article Related Articles Prevent New Account activation email sent to Joomla 2.5 Administrator Joomla 3.1 Error – Could not instantiate mail function How to Create a Slideshow (Carousel) in Joomla 4.0 using Bootstrap How to write a blog post in Joomla 3.1 How to Use the Free Mini Frontpage Extension for Joomla 4.0 How to Change a Joomla 2.5 User’s Email Address How to Configure Joomla 2.5 to Send Email Using SMTP How to Edit a Joomla 3 Template How to install Phoca Gallery for Joomla 2.5 Creating a Menu Item for your Joomla 3 Component