Solved

where are $params located in Joomla

Posted on 2011-03-18
2
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
Allan Nisbet 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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.…
The viewer will learn how to count occurrences of each item in an array.

691 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