Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#7 | menu_views-empty_value_view-2027169-7.patch | 3 KB | ron_s |
Comments
Comment #1
markhalliwellUm, I might be missing something, but I'm pretty sure I just added this feature to 7.x-2.2 via commit: ba27755.
Comment #2
markhalliwellNo response.
Comment #3
ibuildit CreditAttribution: ibuildit commented.
Comment #4
ibuildit CreditAttribution: ibuildit commentedNo, this is not working for me. I get an empty menu item that links to < view >
Comment #5
ibuildit CreditAttribution: ibuildit commentedWhen 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.
Comment #6
ron_s CreditAttribution: ron_s commented@ibuildit, are you using Superfish or Responsive Dropdown Menus?
Comment #7
ron_s CreditAttribution: ron_s commentedPatch for review.
Comment #10
markhalliwell