---
title: "Joomla 2.5 Templates &#8211; $this->params->get(&#8216;templatecolor&#8217;);"
description: "Joomla 2.5 has reached its end of life as for 12/31/2014. Please be advised this may be a security risk to your website. You can view more information about the end of life here. Continuing with our..."
url: https://www.inmotionhosting.com/support/edu/joomla/joomla-2-5/this-params-get/
date: 2012-07-12
modified: 2021-11-19
author: "Brad Markle"
categories: ["Joomla", "Joomla 2.5"]
tags: ["Joomla v2.5"]
type: post
lang: en
---

# Joomla 2.5 Templates &#8211; $this->params->get(&#8216;templatecolor&#8217;);

Joomla 2.5 has reached its end of life as for 12/31/2014. Please be advised this may be a security risk to your website. You can view more information about the end of life [here](https://docs.joomla.org/Joomla!_CMS_versions).

Continuing with our review of the Beez2 template, the next set of code in the template’s index.php file we will look at is:

// get params
$color              = $this->params->get(‘templatecolor’);
$logo               = $this->params->get(‘logo’);
$navposition        = $this->params->get(‘navposition’);

Based upon the names used, it appears that **$this->params->get** will return the value of the given parameter for this template.

## What are the current values of these template parameters?

If we log into our Joomla admin, we can view the values of these parameters by following these steps:

1. [Log into our Joomla dashboard](/support/edu/joomla/joomla-3/how-to-log-in-to-administrative-dashboard/)
2. In the top menu, hover over **Extensions** and then click **Template Manager**.
3. Click **Beez2 – Default**
4. In the right menu under Advanced Options, you will see the following values:[![beez2-advanced-options](https://www.inmotionhosting.com/support/wp-content/uploads/2012/07/edu_joomla25_create-template_beez2-advanced-options.gif)](/support/wp-content/uploads/2012/07/edu_joomla25_create-template_beez2-advanced-options.gif) Advanced Option Value Form Value Logo images/joomla_black.gif images/joomla_black.gif Position of Navigation before content left Template colour Personal personal In the above table, **Value** is the value for the option the user has selected (what you can see in the screenshot), while **Form Value** is the value of the option in the HTML code (you’ll have to view the HTML source code to see this)

## What value does $this->params->get return?

Now that we know that actual value of these template parameters, we can test what the function returns. We will do so with the following code:

<

p class=”code_block”>// get params
$color              = $this->params->get(‘templatecolor’);
$logo               = $this->params->get(‘logo’);
$navposition        = $this->params->get(‘navposition’);
echo ”  <pre>
                       this->params->get(‘templatecolor’) = ” . $this->params->get(‘templatecolor’) . “
                       this->params->get(‘logo’) = ” . $this->params->get(‘logo’) . “
                       this->params->get(‘navposition’) = ” . $this->params->get(‘navposition’) . “
        </pre>
“; die();

[![values-of-this-params-get](https://www.inmotionhosting.com/support/wp-content/uploads/2012/07/edu_joomla25_create-template_values-of-this-params-get.gif)](/support/wp-content/uploads/2012/07/edu_joomla25_create-template_values-of-this-params-get.gif)

As you can see from the screenshot to the right, the value return by $this->params->get is the form value of each of the template’s parameters.
