Solved

where are $params located in Joomla

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…

910 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

25 Experts available now in Live!

Get 1:1 Help Now