View your Joomla Site as a Public User while Set Offline
Sometimes when building a new site or making changes to an existing site, you want to have the site online, yet in an offline mode. When a Joomla website is set to offline, the site is put behind a login and special rights are needed to login from the frontend. Super users can login to the frontend but have extra things visible like editing buttons and unpublished articles. If you want to see the site for you client or yourself as a public user, you can setup a special group to use for this function.
Keep reading to learn how.
First, to set your Joomla website offline, you will need to:
- Click System > Global Configuration
- On the Site tab, click Yes for Site Offline
Then, if you view the frontend of your website, you should now have whatever offline message you set in the Global Configuration and a login module. Note, some templates have special overrides for the offline page, so you might have messaging or imagery that needs to be edited elsewhere.
If you login as a Super User, you can view the site, but you will also see extra options that allow you to edit articles or modules from the frontend.
If you want to login and see the site as a normal public visitor would, you will need to setup a different group with special rights.
- Go to Users>Groups
- Click New to create a new group
- Call the Group Reviewer, or whatever you prefer
- Make sure to leave the Parent Group on Public
- Click Save & Close
You should now see the Group listed under Public, same level as Registered, but not under Registered.
- Next you need to set the rights on this new Group, so go to Global Configuration
- Once in Global Configuration, go to the Permissions Tab
- Once on the Permissions tab, select the new Reviewer group
- Set Site Login to “Allowed”
- Set Offline Access to “Allowed”
- Click Save & Close
Now that you have a User Group setup, you need to go and create a new user.
- Go to Users>Manage>Add New User
- You will need to give the user a name, username, password, and email on the Account Details tab
- Then select the Assigned User Groups tab
- Uncheck Registered, and select Reviewer, or whatever you named your group
- Click Save & Close
You should now see the new user you created in the Reviewer group.
- Now, to check that the user is setup correctly, go back to the frontend and login with your new user
Once logged in, you should see the site as a public user, with no editing capabilities.
You can always delete this user group later on if you no longer need it. If you need to allow someone to access this site when offline but see as a Registered User, you would simply follow these steps with the exception of making the Group Parent “Registered” versus “Public.”
Interested in learning more about Joomla? Check out our many courses about Joomla and Joomla-related topics.
This article really helped me. Thank you!
You’re welcome! Glad it helped!
In Joomla 4, the user nesting needed to be set within the ‘public’ grouping, as follows
Public
– Enabled Viewer <-- – Guest – Manager | – Administrator (etc)
Thank you Robbie ! This is just what I needed.
Awesome! So glad it fit the bill!