I would like to be able to have anonymous users see all menu items, even those which link to pages they need to be authenticated to access. At the moment these menu items aren't displayed to anonymous users. If the user isn't logged in the link should take them to the login page then redirect to the target page if they successfully login.

Can anyone tell me how this can be done?

Comments

Magnity’s picture

Try adding menu items that link to user/login?destination=node/xx. Those should show up when the user isn't logged in.

Magnity

http://webdesign.magnity.co.uk

sszalla’s picture

Thanks Magnity.

The menu item does show up as you say. However the redirect doesn't occur.

I'm using Logintoboggan. The login form has action="/user/login%3Fdestination%3Dnode/add/job-wanted", but the usual user profile page is displayed after login.

Have you any other ideas?

Magnity’s picture

I'll have another think, but the brain is a little snowed under at the moment - its probably something simple that we've missed.

Message me if you're still having issues in a week or so, or in the meantime can anyone else point out a solution?

Magnity

http://webdesign.magnity.co.uk
Magnity Webdesign is currently looking to recruit developers for a number of client projects.

marnix_werners’s picture

The only solution I could find for this problem is using external links.

eg http://www.example.com/user/4 instead of user/4

piegirl’s picture

See this post: http://drupal.org/node/226698

I realize what was happening.
I was using "node/add" as a placeholder path for every one of my menu items.
when no one is logged in, "node/add" is unreachable, and the link wont even show, making it seem as the block as a whole wasn't showing.