Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Dokuwiki 中是否有任何方法可以使无法访问的文章的链接(由于访问权限不足)显示为禁用?
我希望这样的链接是灰色且不活动的,可能带有锁定图标,而不是让用户在单击链接时收到错误消息。
这基本上需要禁用每个页面的缓存并使您的 wiki 慢得多。所以我想答案是否定的。
嗯,有点像
global $ID; if ( auth_quickaclcheck ( $id ) < AUTH_READ ){ ...here add .acldisable to $id; ...here add class "disabled" to $id; }
在核心链接渲染器中
并在 CSS 添加.acldisable { color: gray; }
.acldisable { color: gray; }