I'm trying to hide all the tabs at the top of an advanced forum page, because they look odd in the theme that I'm using. I have:

  • NOT checked the "add a tab for forum view page" and "add a tab for included views that have their own pages"
  • edited the views (advanced_forum_ active_topics, advanced_forum_new_topics, Unanswered forum topics) to have no menu entry
  • cleared all caches

but the tabs won't go away.

What have I missed?

CommentFileSizeAuthor
#10 AF-View-menu-tab.png10.72 KBMichelle
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Michelle’s picture

The tabs are coming from Views. If there are no menu entries there, then I don't know where they are coming from... Try clearing the cache a few more times.

Michelle

atiras’s picture

I finally got rid of them, by:

  1. Disabling and uninstalling Advanced Forums.
  2. Deleting all the associated Views.
  3. Re-enabling Advanced Forums (at this point 4 tabs appeared - View Forums, Active Topics, Unanswered Topics and New topics; and on inspection of the configuration, the options to "Add a tab for forum view page" and "Add a tab for included views" were both CHECKED.)
  4. Unchecking the two options and clearing caches (tabs remained in place).
  5. Clearing caches again - View forums tab vanished.
  6. Editing all the relevant views to have no menu item and clearing caches again. The remaining tabs finally vanished.

Something odd going on, but I have the result I wanted.

atiras’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jay.lee.bio’s picture

For 7.x-2.3, all I had to do was disable "Advanced Forum active topics", "Advanced Forum new topics", "Advanced Forum unanswered topics" in Views & clear cache.

jay.lee.bio’s picture

Version: 7.x-2.0-rc1 » 7.x-2.3
Issue summary: View changes
ExTexan’s picture

Version: 7.x-2.3 » 7.x-2.5
Component: Views » Code
Category: Support request » Bug report
Status: Closed (fixed) » Active

Even though this issue is more than three years old, I thought I'd change the status (and other details) instead of creating a duplicate - this still seems to be a bug.

When I saw that unchecking "Add a tab for included views that have their own pages" (and clearing caches) didn't remove those tabs, I did a search for "views_as_tabs" in all components of advanced_forum. It only appears in two places... lines 83 and 86 of settings.inc.

So, if it is only set in config, but never referenced anywhere else in the code, I don't see how it could work - and, in fact, it doesn't.

osopolar’s picture

@ExTexan: See #5, and disable these views (or change their menu settings). The Tabs will disappear.

Anyway, would be nice if the settings would work properly.

ExTexan’s picture

@osopolar,

Thanks for the suggestion. The "fix" in #5 wouldn't work for me because I DO want the views, I just don't want the tabs. I have menu items for those pages in a right sidebar menu block, so the tabs were redundant.

I can't remember now what I did as a work-around. As you said, it would be nice if that setting actually worked.

Michelle’s picture

FileSize
10.72 KB

I did some poking around and it looks like the setting was ported to Drupal 7 but not the code that makes use of it. The setting isn't strictly needed, though. As I said 3 years ago, the tabs are coming from Views, not AF. All the setting did was provide a way to turn off the tab without modifying the view, which meant you could do it without having the view be overridden in the database. As it's unlikely that the D7 version will get any changes to the views at this point, having them be overridden isn't a big issue. If I get some time, I'll see if I can port the option but, in the mean time, if you don't want the tabs, just edit the views.