-
- 37 Posts
Hi,
I’ve been developing a site for a client in revolution 2.1 which is currently inactive through system settings, showing only the system holding page to the public. The site has about 20-30 pages which the client is still providing content for.
I need the client to be able to view these pages without making them public.
I’ve been going round in circles trying to work out how to give them an admin role to reveal the pages on the frontend but not a manager role.
Could anyone give me some guidance?
Thanks
Mat
-
- 37 Posts
No worries sorted it. Was being a bit previous. Looking at Bobs guides and the RTFM I duped the admin role and enabled just the view site offline option which stops the client from viewing the manager area but allowing them to view all the frontend.
The only thing that would be even better would be to redirect them from the manager login back to the frontend home page.
Anyone point us in the right direction.
Thanks
-
- 24,544 Posts
A plugin connected to OnManagerLogin that checks the user ID and forwards the user to the front end should do it:
<?php
If ($user->get(’id’) == 12) { // replace 12 with the Client’s user ID
$modx->sendRedirect(’
http://yoursite.com/home.html’); // replace with the full URL of the page you want to send them to
}
Actually, this might work for the first line:
-
- 37 Posts
That’s great. Works a treat.
Thanks