Posted by mjpa on April 23, 2011 at 10:10am
Description
Some content/nodes should never be viewed directly; only visible be through something else such as Views, or Panels. Per-content type or per-node, this module denies access to node/[nid] URLs while allowing the content to stay published and otherwise viewable.
Functionality
- Creates a permission per content type which when disabled denies node view to the specified role.
- Adds an option to content type edit forms for administrators to select the result of a direct node view.
- Node view options are Allow, Not Found, Access Denied, and Redirect.
- Redirect URL/path can use tokens, anchors or $_GET variables.
- "Denied action setting per-node" in content type settings. Node default is to use content type default.
- hook_url_outbound_alter() implementation to rewrite URLs of denied nodes to the redirect URL.
- Simpletests for content type settings, node settings, and hook_url_outbound_alter().
- Rules integration - Node view denied to user
- internal-node class on <div> and optional status messages for users with permission to view blocked nodes.
Use Cases
- Index all content types for search, but redirect some to the correct View/Panel when accessed.
- A View/Panel can open/scroll/page to a node when a [node:nid] token is used
as a GET variable and or Anchor. - Deny access to node/[nid] URLs, except where allowed.
- When nodes in an old content type are no longer needed, redirect all accesses to the landing page for the new content type.
Future Functionality
- Rules - Set 'node action'
- Views - List blocked actions for each node
- PHP/Hook for redirection location
- Allow edit/delete, but not view. See: http://drupal.org/node/1331034
- Simpletests for minor features
Downloads
Recommended releases
Development releases
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Content, Content Access Control, Content Display, Path Management, Utility, Views
- Reported installs: 241 sites currently report using this module. View usage statistics.
- Downloads: 485
- Last modified: March 21, 2012