Solved

where are $params located in Joomla

Posted on 2011-03-18
2
302 Views
Last Modified: 2012-05-11
I am working on a Joomla site and I need to change one of the inline styles, located in the line below.

<ul class="menu" role="navigation" style="display: block; height: 50px; overflow-x: visible; overflow-y: visible; visibility: visible; ">

I've followed the style back to a module file where the corresponding line looks like this:

<ul class="menu<?php echo $params->get('class_sfx');?>"<?php
      $tag = '';
      if ($params->get('tag_id')!=NULL) {
            $tag = $params->get('tag_id').'';
            echo ' id="'.$tag.'"';
      }
?> role="navigation">

I think that the line  echo $params->get('class_sfx'); is inserting the styles, but am not sure. Is this correct? and if so where is the value of this variable stored so that I can change it?

Thanks for any help
0
Comment
Question by:elliottbenzle
2 Comments
 
LVL 13

Accepted Solution

by:
StormITSolutions earned 500 total points
ID: 35167888
Hi if you can give me a link to the site I can help you further.

im guessing its the mainmenu or similar module
possibly main_mainmenu.php

look for a Helper.php and File.php

which are associated with the menu to find your params.

Go to the module folder of the menu and have a scout around in there

normally they are in a xml file

<param name="class_sfx" type="text" default="" label="Menu Class Suffix" description="PARAMMENUCLASSSUFFIX" />

the above is an example of how its normally used

0
 
LVL 4

Author Closing Comment

by:elliottbenzle
ID: 35168116
Thanks found it.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with mod_substitute 18 43
php subtract from date 2 29
CSS for <center> 14 35
Echo values after a query in php 5 26
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn how to count occurrences of each item in an array.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question