Umbraco/Samples and Articles/Protecting Documents

< Umbraco < Samples and Articles

Basics in limiting public access to documents

This guide is based on the site installed with the Website Wizard package and is therefore referencing specific templates and documenttypes from this installation. However the basics apply to other templates and documenttypes as well.

Approaching protection

You have two ways of protecting one or more documents in Umbraco.

  1. Access based on a simple shared login and password.
  2. Access based on memberGroups - memberTypes and Members

Install the Member Controls package

If you can't find it at rtk-cv.dk then you will have to ask in the Umbraco Forum

After installing the package you will have 3 new macros in your Developer/Macros section.

Create a template

You need to create a template to hold the login function. This has to be done for either approach and is done in the 'Settings' section of your Umbraco installation.

Create a login page.

Protect your document(s)

If the document you are applying protection to has child documents these documents are protected as well.

The easy approach to protecting documents is one single username/password and this is achieved by

Advanced protection

If you want more control over the access to the documents you can apply security on a memberGroup basis.

If you choose this approach you will have to go to the Members Section before applying security on the document(s).

If you start using Member Groups you might want to look into how to create password reminders and even automated user registration.

Important

When assigning security on documents it is important to remember that both Login page and Error page has to be defined. They can easily be the same page but both has to be selected. If you fail to do so you will get a servererror when trying to update the settings.

Other resources

If you prefer some visualizing you could goto Niels Hartvigs online Screen Cast showing how to protect documents in Umbraco CMS. There is also a reference here


Best Regards

--F.Hundewadt 07:47, 7 August 2006 (UTC)

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.