MODx隐藏开发站点
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MODx隐藏开发站点相关的知识,希望对你有一定的参考价值。
Set up a basic template:[[++site_name]] - [[*pagetitle]]
​
[[*content]]
Content:
The ACME web site is currently under development
<p>Please
// ' + 'email us' + '</a>' )
// ]]>
for all enquiries.</p>
..and set this page as the Unauthorised Page in system settings.
Put this snippet at top of every other template:
[[!UnauthorisedAccess]]
Now only web manager users logged in will be able to view the full site. Change to 'web' for web users.
Snippet code:
<?php if (!($mgrUserId = $modx->getLoginUserID('mgr'))) { $modx->sendUnauthorizedPage(); }
以上是关于MODx隐藏开发站点的主要内容,如果未能解决你的问题,请参考以下文章