Developer forum

Forum » CMS - Standard features » Website under construction

Website under construction

Tomas Gomez
Reply

Hi,

Which is the best way to set a website (or a specific language layer) under construction? 

That is, only the users logued into the backend could see the frontend content (e.g. pressing the "Show page" button). Any other visitant should see the "under construction" page.

Regards,
Tomas


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Setup permissions for the website - remove anonymous access.

 
Tomas Gomez
Reply

Hi Nicolai,

We tried to do it, but the users that are loged in the backend cannot acces the frontend.

The attached image shows the configuration of the website permissions. Is there any other configuration we should take into account?

Regards,
Tomas

WebPermissions.png
 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

Try this setup

 
Tomas Gomez
Reply

Thanks Shiwanka!

You gave us the clue to solve the problem. We were confused about the backend roles of Rapido users. To clarify it (for other DWers reading this) there are three different roles:

  • Authenticated users (backend): Any user with backend access.
  • Administrators: Users inside the "Administrators" groups of Rapido.
  • Administrator and Admin users: Special users with no access to frontend.

And a further question. While the website is under construction, is there any way to hack the login so being able to test the website for an anonymous user? I mean, to allow the access to certain IPs, special cookies or something like that.

Regards,
Tomas

 
Shiwanka Chathuranga Dynamicweb Employee
Shiwanka Chathuranga
Reply

you can still try with group permission, but in this case allow frontend authenticated users to access and block for other groups except the new group that you want to give permission.

 

 
Tomas Gomez
Reply

Thanks Shiwanka, but the requirement is to allow only certain anonymous users. That is, to block all the anonymous users but the anonymous user that fulfill a certain condition.

This requirement could be achieved in the permissions by blocking the Anonymous frontend users and allowing a Smart users group with a certain condition. But curently only standard user grops are elegible in the permissions, not the Smart users groups.

Is there any other way to do it?

 

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Tomas

Getting a little confused

  • If the visitor is not logged in to the frontend, they are anonymous - and all visitors are treated the same.
  • If the visitor is logged in to the frontend, they are no longer anonymous and can be treated differently by their group belongings.

BR Nicolai

 
Tomas Gomez
Reply

Hi Nicolai,

The goal is to test an anonymous user visting the website while it is under construction. For instance, to check the info that is displayed to an anonymous user when buying a product.

As you say, all visitors (ie. anonymous users) are treated the same, so when the site is under construction all the anonymous users will only see the under construction page. Therefore we cannot test the website behaviour for anonymous users.

How could we test the website for an anonymous user while the site is under construction?

Regards,
Tomas

 

 
Tomas Gomez
Reply

 

You must be logged in to post in the forum