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.
I have several items (links) in my main menu that are to pages with access control. Essentially, if the person is logged in they can see those links in the main menu. But if they are not logged in then they cannot see those links.
Works perfectly in the main menu. Doesn't work in footermap.
In footermap, the links are displayed even if the user does not have access permission to that page. I would expect that the same items that display in the actual menu also display in the footermap.
Comments
Comment #1
mradcliffeThe problem with obeying content access is that footermap works best when cached. I would have to cache/regenerated for every single access callback. I'm sorry to say that I determined that this was out of scope for the module to try to do a couple of years ago.
Comment #2
Lloyd CreditAttribution: Lloyd commentedHow about a way of manually excluding a menu item from footermap?
I'm getting Google Webmater errors because footermap is displaying links that an anonymous user cannot access. Not the end of the world but seems like there should be some way of tackling this issue.
Comment #3
mradcliffeThis is possible in 1.1 in template preprocessing.
Comment #4
Lloyd CreditAttribution: Lloyd commentedI'm unfamiliar with template preprocessing. Can you elaborate just a little on what to do. I can google it for the generic stuff but how about the specifics regarding this issue.