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.
By simonDRPL2183 on
Hello!
xxxx
When you click the Support menu link in our menu bar as a non logged in user it gives an error :(
Is there a way to make something different happen for non-logged in users? eg display a different basic page for example?
Preferably without the need for a module.
Cheers!
Comments
Permissions
By default, Drupal's menu system won't show a link if the current user isn't allowed to view the page, but this looks like some other problem. That link is delivering a 404 (not found), not 403 (permission denied). How is your user/support page constructed? Is it a node? A view? A panels page?
To solve your core problem: Make your user/support page using Panels and use a role selector to apply a different variant for logged-in users. Same url, same link, different content.
Thanks for your reply
Thanks for your reply yelvington. It appears to be currently setup as a view. The link:
/user/support
actually redirects to the logged in user's support page eg:
user/12345/support
Could we 'tweak' the view at all? Rather than using another module?
Cheers