Making the popup Views Menu go bye bye in Drupal

2009 January 16
by Karen

One of the things that people found irritating in Drupal was that a dynamic mouse-over menu appeared on all our views when people were logged in. Half the time this made the views impossible to use because the menu covered actual clickable content.

We desperately needed to do something about this. So I started to look at views and discovered that the code which generates this is located in views-view.tpl.php . The problem is that this file is by default kept in the views module itself. So if you change it it gets override everytime you update a the Views module. The solution. Copy the views-view.tpl.php file into my theme and make the changes on it there. This meant deleting the following lines

views_mouseover

Once I made the change I also needed to refresh my theme templates to haave the changes take effect. All in all it was a pretty simple change to fix a BIG usability problem.

3 Responses leave one →
  1. 2009 January 21

    There are two problems with this howto:

    1) there is a setting to disable these on admin/build/views/tools — clearly you should browse these settings as there are some useful things there.

    2) Even not finding that, all tpl.php filesare templates that you can copy to your theme which will override the default. I would be very wary of taking advice from anybody who does not know this as it is a key Drupal feature and I don’t know how you can use drupal effectively without knowing this. Besides that, it’s also clearly documented in Views’ advanced help.

  2. 2009 January 22

    Thanks for the comment. This is MUCH easier. I will say I spent a day reading the Views documentation and searching for how to do this before trying this method. Also it probably isn’t clear from my post but I did EXACTLY what you said in #2 when performing this change. Yes, this is one of the best things about Drupal.

    One thing that frustrates me MOST about Drupal is the inconsistency of the documentation and how difficult it is to find out how to do particular things. I haven’t found a sure fire way to answer Drupal questions. Have lots of books, read lots of Drupal documentation but sometimes it just doesn’t help. For example, how do I get rid of those same damn popups when I’ve inserted an RSS feed in the Aggregator into a Panel?

Trackbacks & Pingbacks

  1. Learning and Chastising - Geekly Times

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS