Solved

where are $params located in Joomla

Posted on 2011-03-18
2
296 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
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 a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now