Download & Extend

Can I link to an access denied page in my menu, to let anonymous users, know they need to login for some types of content?

Project:LoginToboggan
Version:6.x-1.6
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

On our site we used to let anonymous people submit press releases to our site and they would go into a moderation queue for our marketing person to look at. But our spam has gotten out of control so we put a permission on it that someone has to be the right role before they can add a press release.

We want a link on our menu that says "Submit a Press Release" and has a link to node/add/press-release. the node/add/press-release page will show an access denied page and show a login form.

I tried this out with login destination and it worked great except that I couldn't show the Submit a Press Release page with the login form on it and I couldn't re-direct to the page from a dummy page with a form on it because our site has "preserve destinations setting on it" that either works for every link or no link, I guess.

So, if I use this module, will I be able to show a link to the node/add form to anonymous people in my menu bar or will it still be blocked?

Thanks,

Becky

Comments

#1

Status:active» fixed

no idea how core handles that. it you create a custom menu item, i'm guessing it will show ok, but you'll have to try it and see.

#2

It won't show if an item links to a page that has different permissions as far as I can tell. I was just hoping there was a way to get around it.
Becky

#3

Ok cool. This works. The link still shows up and gives people an opportunity to login if they are logged out.

Becky

#4

Status:fixed» closed (fixed)

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