User login

Ask Agaric: Trying to deny access...

Hi there,

I am putting together a site that has very strict access requirements, there must be no access to content beyond the home page by anonymous users. To this end, I removed Anon. User 's access to Node Module content. This does the trick, no access to anonymous. However I was using 'node/1' as the home page which is now access denied :( Changing the access denied page to node/1 doesn't fix the issue either)

How do I make a home page that is accessable (it will ultimately inform site users to log in to see content) yet maintaining no access to the rest of the data?

Thanks...

Two approaches
Benjamin Melançon - December 14, 2007 - 01:17

If you expect to want to let some users view a bit more content, or to have a few more pages, you're best off installing an access control module such as Node Access.

If you don't expect to want anything beyond the home page for a while, you can cheat and use a block.

Make sure you're using a theme that has a content_top or content_bottom sort of region, and make a custom block at admin/build/block/add with whatever text you want for the home page.

benjamin, Agaric Design Collective

(From drupal.org/node/200805 )

Resolution

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.