Return to Snippet

Revision: 53718
at December 1, 2011 21:50 by hotdiggity

Initial Code
if (!($mgrUserId = $modx->getLoginUserID('mgr'))) {

Initial URL

Initial Description
Set up a basic template:

<title>[[++site_name]] - [[*pagetitle]]</title>


<h4>The ACME web site is currently under development</h4>
<script>// <![CDATA[>' + 'email us' + '</a>' )
// ]]></script>
for all enquiries.</p>

..and set this page as the Unauthorised Page in system settings.

Put this snippet at top of every other template:


Now only web manager users logged in will be able to view the full site. Change to 'web' for web users.

Snippet code:

Initial Title
MODx hide development site

Initial Tags

Initial Language