[WordPress] 外掛分享: Rabbit Hole

首頁外掛目錄 › Rabbit Hole
WordPress 外掛 Rabbit Hole 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
60+
安裝啟用
尚無評分
860 天前
最後更新
問題解決
WordPress 4.9+ v1.1 上架:2022-07-28

內容簡介

Rabbit Hole 是一個外掛,可增加控制當實體在其自己的頁面上被查看時應該發生什麼的功能。

也許您有一個內容類型,不應該在其自己的頁面上顯示,例如顯示在輪播中的圖像內容類型。
Rabbit Hole 可以通過 p=xxx(或永久連結)防止訪問該對象在其自己的頁面上顯示。

選項

這通過提供多種選項來控制當在其自己的頁面上查看實體時應發生什麼。
您可以:

提供拒絕訪問的頁面。
提供未找到頁面。
發出到任何路徑或外部 URL 的頁面重定向。
或者只顯示實體(常規行為)。

這是可配置的每個文章類型和單個文章類型。

可以使用 Twig 或 Shortcode 生成動態值的重定向路徑。
這使得可以根據需要的任何邏輯執行不同的重定向。
也許您希望某個使用者能夠查看他自己創建的節點,但沒有人能看到其他人的節點。

即將推出
- 條件
將有可能設置超級用戶角色,完全覆蓋 Rabbit Hole,有助於會員制。
- 檔案庫
支持用於學科和作者檔案庫頁面

Drupal 移植
這是從一個受喜愛的 Drupal 模組 移植而來,我在所有項目中都使用它。
感謝作者的這個想法。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Rabbit Hole」→ 直接安裝(推薦)

原文外掛簡介

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 (401, 403).
– Deliver a page not found page (404).
– Issue a page redirect to any path or external url (301, 30x).
– Or simply display the entity (regular behavior, 200).
This is configurable per:
– post type and single post.
– taxonomy and single term
– roles and single user
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.
New options:
– Archives
Support for Terms and Authors archive pages
– Conditions
There will be the possibility to configure a User Role that override Rabbit Hole completely, useful for Memberships.
– Display Message
Show a custom Message for unauthorized page (401, 403)
Drupal porting
This is porting from a beloved Drupal module which I used in all my projects.
Thanks to the authors for the idea.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon