Posted by robynruckel on January 5, 2010 at 3:27am
Hi,
Drupal newbie here. I've got a client who wants some pages to require a login. I thought it would be done with permissions but I've not been able to figure it out. In the nav menu there's a link to a page called "Licensees". That needs to take the viewer to a login before they can view the page. Any help would be very much appreciated.
Thank you!
Comments
Content access
I'm assuming "Licensees" is a content type. Content_access will give you the control over access to the "Licensees" content type. There are other modules that you may want to look at too
http://drupal.org/project/content_access
http://drupal.org/project/nodeaccess
You can set the user login block to show only on the "Licensees" landing page which I assume is a view.
Let me know if that helps.
Boy, I'm really new at
Boy, I'm really new at this.
No, Licensees is just a page. I have set the user login block to show only on that page. I'm not sure what you mean by "view".
Thank you for the input.
content type
Ah, I see. I checked out the links you provided, tommy. I'll need to set up "Licensees" as a content type. I'm learning something new every day and loving working with Drupal. It's fantastic!
I guess it would help if I
I guess it would help if I knew what the "Licensees" part of your site was going to be was going to be. If it was going to be a page like the a typical sites "about" or "contact" page or is it something that will look like a blogs frontpage with the most recent post at the top.
I would start by understanding Drupal then deciding how you are going to do it. The biggest mistake you can make is not planning enough.
There are two 6 hour plus videos over at Lynda.com on Drupal. I think Essentials training and Data Presentation is what they are called. I know they offer a free 24 hour pass I think without a credit card. So if you had the time. These will explain from understanding how and if it works for you and then show you how to do the basics and more advance things. Saves you the time of piecing together video tutorials all over the place online.
You can google Lynda.com free pass.
Then go to
There is a list of sites with Drupal video content here.
http://drupal.org/node/124318
These will allow you to drill down to specific things you want to achieve. Although I am sure there are some good beginner videos in there.
Hope this helps.
Oh don't forget the forums over @ Drupal.org
licensees
Hi tommy
"Licensees" is a page with no interaction other than links to webinars. No posting. My client's site has a lot of areas they want everyone to be able to view but their licensees need to log in to see privileged information.
I've already gone through the "Drupal Essentials" videos on Lynda.com and I've started going through the latest Drupal training series there that's about designing your own theme. They're excellent videos but they didn't go so far as to explain how to do what I need to do with this Licensees page.
I'll check out the link you posted above.
Thanks for your help!
Very simple. So ok, the
Very simple.
So ok, the licenses are really just links on a page, as you stated. This actually makes is quite easy to accomplish what you want. One thing I'd do is to create a special content type just for the licenses (just for categorization and ease of use).
Download and install the Node Access mod from here: http://drupal.org/project/nodeaccess
With this mod, you can restrict access to any node. So if you set the license node to be viewed by authenticated users, then anonymous user will be re-directed to an access denied and login page when clicking the link. They can also create an account from this point as well, if you wish.
That should do exactly what you need. There are a number of modules that restrict access, such as by content type, taxonomy, etc. Visit this page for a list of related modules:
http://drupal.org/project/modules?filters=drupal_core%3A87%20tid%3A74&so...
Let me know if you need more help. Good luck!
Chris
Tried node access on brand new site
and it didn't work. Just got the denied access message, but not redirect to login.