Hello there,

I was wondering whether it'd be possible to disable the menu item if the view returned no results? With the theme I have setup at the moment this would cause the menu link to no longer be a drop down which would aid in a cleaner ui design. Or if anyone has a way of doing this I'd love to hear about it

Cheers
Dan

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markhalliwell’s picture

Version: 7.x-2.2 » 7.x-2.1
Status: Active » Postponed (maintainer needs more info)

Um, I might be missing something, but I'm pretty sure I just added this feature to 7.x-2.2 via commit: ba27755.

markhalliwell’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (works as designed)

No response.

ibuildit’s picture

.

ibuildit’s picture

No, this is not working for me. I get an empty menu item that links to < view >

ibuildit’s picture

When the permissions in the view is set to Role, I get < view >, if it's set to permission, I get a bit more markup in the output.

ron_s’s picture

@ibuildit, are you using Superfish or Responsive Dropdown Menus?

ron_s’s picture

Version: 7.x-2.1 » 7.x-2.x-dev
Category: Feature request » Bug report
Status: Closed (works as designed) » Needs review
FileSize
3 KB

Patch for review.

  • markcarver committed b51e7e4 on 7.x-2.x authored by ron_s
    Issue #2027169 by ron_s, tr33m4n: Hide sub menu when view returns no...

  • markcarver committed b51e7e4 on 8.x-3.x authored by ron_s
    Issue #2027169 by ron_s, tr33m4n: Hide sub menu when view returns no...
markhalliwell’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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