Adding the Rabbit Hole module to Drupal CMS

Created on 19 September 2024, 4 months ago
Updated 20 September 2024, 4 months ago

Rabbit Hole module is beneficial for several reasons:

  1. Content Access Control:
    • Example: Suppose you have a "Staff" content type. You want to display staff profiles on an "About Us" page but don't need to allow direct access to individual staff profile pages via a URL. By using Rabbit Hole, you can prevent visitors from landing on standalone staff profile pages, ensuring they only see staff details in the context of the "About Us" page.
    • Taxonomy Example: If you use taxonomy terms to categorize content, you might not want users to access individual taxonomy term pages. Rabbit Hole allows you to hide these pages, so users don’t land on the taxonomy URLs that provide little value by themselves.
  2. Flexibility and Configuration:
    • Rabbit Hole offers granular control, letting site builders configure what happens when someone tries to access restricted content. For example, you can:
      • Redirect users to a specific page, such as the homepage or a section of the site.
      • Example: If you have an "Events" content type and want users to access only the events listing page (e.g., /events), but not the details of each event, you can set Rabbit Hole to redirect users who try to access individual event pages back to the events list page.
      • Show a 404 page or display a customizable message, providing feedback that the requested content isn’t available.
Feature request
Status

Closed: won't fix

Component

Track: SEO

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @boulaffasae
  • 🇦🇺Australia pameeela

    @boulaffasae we are not currently adding modules like this unless they are needed for a recipe. I agree rabbit hole is great, but so far no recipes have needed this functionality.

  • Status changed to Closed: won't fix 4 months ago
  • 🇦🇺Australia pameeela

    Referencing https://www.drupal.org/about/starshot/blog/out-of-the-box-functionality-...

    Whether a module will be included will depend on many things, but mainly, it should be required for some functionality that we are planning to deliver. Track leads will propose functionality that will be supported by contrib modules, and then the modules will be assessed for inclusion. We plan to publish further information about module selection and ongoing governance and maintenance as the project progresses.

    Project Browser will provide non-technical users with an easier way to add modules they need, so we feel that is sufficient for now.

    Thank you for the suggestion though!

Production build 0.71.5 2024