exponential.earth / exponential / documentation / building an ez publish site / the guestbook / making the button work
These documentation pages are no longer maintained. Please visit the new documentation site.
If you try to click the "Sign the guestbook" button at this point, you'll probably meet a rude page that resembles the following screenshot.
That's right buddy, the object is unavailable! This phenomenon is perfectly normal; and the explanation is fairly simple. When clicked, the "Sign the guestbook" button that we just put in initiates an action within the content management system. eZ publish will attempt to create a new object using the current user, which in this case (since nobody is logged in) is the built-in "Anonymous" user. Not surprisingly, the default security settings do not allow anonymous users to mess around with content. In order to make the button work, we'll simply have to let anonymous users to be able to do two things:
The following step-by-step guide explains how to enable this functionality.
At this point, the list of role policies for the anonymous user should look something like this:
The previous list of steps took care of adding "Create" privileges to the anonymous role. In addition, we'll also have to add "edit" privileges to this role. Repeat the previous steps, but this time make sure that you select the "Edit" function (at step two) and that you select "Self" from within the owner list (at step three). The rest of the selections should be the same as in the list of steps presented above.
At this point, the list of role policies for the anonymous user should look something like this:
Comments
typo
Andrei Barhatov
Thursday 23 December 2004 10:12:45 am
But must be "ROLE" instead of "USER".