By tuti on
I don't want anonymous users to be able to post but I want them to see that you can create content and when they click the link I want it to redirect to the login/register page.
But Drupal itself removes links that anonymous users can't access automatically. How can I make it show menu items even if the anonymous users can't access them?
Comments
Why not
Create a page with a menu item that is very similar to "Create content" that says you must login and have a link to login from that page. You could use the Menu_By_Role module to show that page to anonymous users and go away when they become authenticated.
Nancy W.
now running 4 sites on Drupal so far
Drupal Cookbook (for New Drupallers)
Adding Hidden Site Design Notes
NancyDru
Thanks for the reply! That's
Thanks for the reply! That's a good suggestion. The best would be if I could put the login forms in that page. I'm not sure how the code should look like or is this possible even?
I solved it! By using Views
I made the links appear for anonymous users by using the module Views. First I made the create content links be URL aliases and then I made a new Views page that has that URL alias as the views url and only choose to only show to anonymous users in the view properties. Now the same links appear for logged in and not logged in users but for anonymous users it redirects to login/register!
I'd love
I'd love to see more details on that. I've not had much luck with Views.
Nancy W.
now running 5 sites on Drupal so far
Drupal Cookbook (for New Drupallers)
Adding Hidden Site Design Notes
NancyDru
I just made a view with the URL of the alias
that I made to the create content page. But if you have any questions I'm happy to answer them!
I have been wanting this
I have been wanting this feature for my website but do not know how it is done. Is it possible to guide me through this procedure step-by-step starting from the beginning? Thank you ver much.
tried it but..
.. couldn't get it to work.
created url alias for node/add -> post
created a view
set for anonymous user
checked provide a page view
put in the url alias -> post
view type is set to full node
check provide menu (shows on primary link)
now.. where do I put in the redirect? Do I have to put in an argument?
I tried putting a php redirect in the header area but no luck. I still get No content types available for anonymous user.
What am I doing wrong?
Thank you,
Mark