Skip to content

This page is password protected

If you can see this page, you are logged into OpenCms!

Diese Anleitung beschreibt, wie ein Passwort-geschützter Bereich angelegt werden kann.

Bitte beachten Sie, dass diese Schritte voraussetzen, dass Sie über die ensprechenden Rechte verfügen, mit der Administration von OpenCms und insbesondere dem Verwalten von Berechtigungen im OpenCms vertraut sind.

In order to be able to use these settings optimally, advanced technical understanding and knowledge of HTML and CSS are helpful.

Berechtigungen Dialog öffnen

To create a password-protected area, you must first set the appropriate permissions in Explorer view.

To do this, open the context menu of the start folder for the area you want to protect and select Permissions.

Permissions dialog

In the Permissions dialog, you must now set the desired access permissions.

To do this, select a group using the “User” icon and add it to the permissions list for the selected folder using the “+” icon.

In our example, we are revoking all rights for guest users in the folder /anleitungen/passwort-bereich/.

Setting the login-form property

After the permissions have been set, you must specify where the login form is located in the properties of the protected area's start folder.

This is controlled by the login-form property.

In our example, the page /demo/funktionen/login  should contain the login form, so the login-form property is set accordingly.

The dynamic ‘Login Form’ function

In the page editor, you must first select a page for the login form. You can use an existing page or create a new page specifically for this purpose.

Die Seite /elements/functions/loginform/ wird in diesem Beispiel verwendet.

In the Add Content dialog box (“magic wand”), first select Advanced Elements and then Dynamic Function. There you will find the Login form for users element.

Drag and drop the ‘Login form’ function onto a page

Now drag the dynamic function Login form for users onto the page.

Since you are currently logged in yourself, this will be displayed accordingly in the form.

Now you just need to publish all changes, and your protected area will be set up.