Rabbit Hole

Author Nerds Farm
Contributors nerdsfarm, frapesce
Type Free
Current Version 1.0.1
Last Updated 29 Jul, 2022
Released 29 Jul, 2022
Total Download 22
Active Install 0
Support 0 out of 0

Rabbit Hole is a plugin that adds the ability to control what should happen when an entity is being viewed at its own page.

Perhaps you have a content type that never should be displayed on its own page, like an image content type that’s displayed in a carousel. Rabbit Hole can prevent this object from being accessible on its own page, through p=xxx (or permalink).

Options

This works by providing multiple options to control what should happen when the entity is being viewed at its own page. You have the ability to

  • Deliver an access denied page.
  • Deliver a page not found page.
  • Issue a page redirect to any path or external url.
  • Or simply display the entity (regular behavior).

This is configurable per post type and per single post type.

It’s possible to generate dynamic values with Twig or Shortcode for the redirect path. This makes it possible to execute different redirects based on whatever logics you need. Perhaps you want a user to be able to view nodes that he has created, but no one else’s.

Coming soon – Conditions There will be the possibility to configure a User Role that override Rabbit Hole completely, useful for Memberships. – Archives Support for Terms and Authors archive pages

Drupal porting This is porting from a beloved Drupal module which I used in all my projects. Thanks to the authors for the idea.

0
0 Reviews
5
0%
4
0%
3
0%
2
0%
1
0%