五指cms 欄目訪問權限和內容訪問權限-提醒模式配置
阿新 • • 發佈:2017-07-03
五指cms wuzhicms
系統模式:沒有權限時直接提醒
手動模式:
可以在模版中,隱藏沒有權限訪問的內容。靈活性更高。
在模版中可以取到變量:$access_authority
2種值:true or false
為true時,有權限
為false時,無權限
<div class="content-p"> {if $access_authority} {$content} {else} <div style="text-align: center;"> <font color="#b22222">您當前的用戶組沒有訪問該內容的權限!</font> <br> <a href="{WEBURL}index.php?m=member&v=login">您可以點擊這裏登錄</a> </div> {/if} </div>
本文出自 “WUZHICMS” 博客,請務必保留此出處http://wuzhicms.blog.51cto.com/2850744/1944147
五指cms 欄目訪問權限和內容訪問權限-提醒模式配置