Restricting content

Apr 19, 2014 3:20 pm

Note: Before restricting content, you must set access levels.

Restricting a Web Page or Form
The first example will be of restricting an individual web page, but the process is essentially the same for restricting a form. Open the Web Pages module of the Blue interface and either click the "Add a new Web Page" button or click "edit" next to an existing web page. At the bottom of the screen will be a field called "Membership Access" and a pull‐down list.

The default setting for the web page is for no restrictions, which means that any website visitor will be able to view the page. Clicking the arrow displays all of the existing access levels, one of which can be selected.

Selecting an access level here means that only membership groups that have that access level checked will be able to view the web page. When a site visitor clicks on a link or menu item to view the page, a login box will first appear prompting him/her for a valid user ID and password. Once these are entered, the user will be able to view the page.

Restricting by Category
Restricting content by a module category is a similar process, but is not recommended in most cases. The problem with restricting by category is that itís impossible to completely lock down only one category of a module; if the module itself isnít restricted, a website visitor could simply change part of the URL and view the restricted content.

Restricting a module category also requires creating a restricted display type. However, instead of setting that display type for an entire module on the Display Type tab, the display type must be set for a category from the Blue interface. Switch to the Blue interface and open the module whose category will be restricted and click on the Categories tab.

The above example uses the Events module, and three categories have already been created. Either create a new category by clicking on the "Add a new Category" button or edit an existing category by clicking on the "Edit" link next to a category name.

For "Display Type," a display type can be selected from the pull‐down list. Select the restricted display type created earlier and then click Save. Now, attempting to view events of the specified category will prompt visitors for a user ID and password.