Technote Details :: How to restrict access to a panel content

Issue

To restrict not logged in users from viewing certain parts of teh site - e.g. the lists in the administration section - you can go about in a site built with MX AJAX Toolbox in the same manner as for a regular site: by applying a Restrict Access to Page server behavior on the panel state to restrict.

Reason

Before actually restricting content, follow these initial steps:

  1. Create a Dreamweaver site and apply the Site menu > New AJAX Site command.
  2. Define the panels and intial states that you need. If you want to redirect the users to a special access denied page, add a content state with a suitable name.
  3. Define the Dreamweaver database connection pointing to the users and information tables.
  4. Configure the InterAKT Control Panel > Login Settings options with the actual user table columns. For the Login failed page either specify the denied state defined before (using a link like: index.php?Content__state=denied) or don't specify a value for the Content__state parameter to go to the home page.
  5. Edit one of the content states and create a list or other content that you want restricted.

Solution

To actually protect the content, follow these steps:

  1. Open the master page in Dreamweaver.
  2. Click the Content panel to select it. Then click the Edit panel states icon on the MX AJAX Toolbox tab of the Insert bar. From the menu select the state that you want protected.
  3. Place the mouse cursor inside the panel and from the Server Behaviors tab > Plus (+) >MX Kollection > User Login apply the Restrict Access to Page server behavior.
  4. Configure it to restrict access for users based on username and password and / or level. Apply the server behavior and save the panel and the master page.
  5. Now, when users access the restricted panel state without being logged in they are redirected to the main page or the actual denied access state.

Home > Support > Knowledge Base > Technote Details
Search the Knowledge Base
© Adobe Systems Romania. All rights reserved.