Set Anonymous User Roles

Community Server

Group for Content about my AlexCrome.CS addon package for Community Server 2008

Alex Crome.CS 2008.5 Documentation

This wiki contains documentation for my AlexCrome.CS 2008.5 addons for Community Server.

Set Anonymous User Roles

Alex Crome.CS 2008.5 Documentation

This addon allows you to assign a special role to the anonymous user so that you can configure navigation items to appear for only the anonymous user.

By default, if the anonymous user is accessing a Community Server website, the anonymous user's role is set to just "Everyone" regardless of what roles the anonymous user has in the database.  This module overrides this default behaviour to get the anonymous user's roles from the database.

Installation

  1. Download AlexCrome.CS 2008.
  2. Copy AlexCrome.CS.dll to the /bin/ directory of your website. 
  3. Ensure your the communityserver_override.config file contains the following
    <Override xpath="/CommunityServer/CSModules" mode="add">
        <add name="SetAnonymousUserRoles" type="AlexCrome.CS.Modules.SetAnonymousUserRoles, AlexCrome.CS" />
    </Override>
    

Useage

Create a new role (e.g. "Anonymous") and add the Anonymous user to this role.  You can then configure Navigation Items to only appear to anonymous users by configuring the navigation item to only appear to members of the "Anonymous" role

Sort by: Published Date | Most Recent | Most Useful
Comments
  • So how does this actually work?

    I've done the above... now how do I make menu items for Anonymous users only? Do i set the roles in the navbar options to "anonymous" rather than "everyone"?

  • Create a new role - e.g. Anonymous - and add the anonymous user to that role.

    You can then configure your Navigation item so it only appears to members of the "Anonymous" role.

Page 1 of 1 (2 items)