4.4. Prepare content for authenticated visitors

Contents

If you are supporting user accounts on your website, then the users should have some particular links for easy navigating to access the functionality, which is granted for authenticated users.

There is a default menu, which is provided in Allmice CMS Classic Edition after installing a new website, which has links to some module method pages, which an authenticated user usually would need.

This menu is called My Account and it is passive by default.

To make this menu active, go to URL
[path-to-your-site]/menu/list-menus.
Click Edit link in the table in the row, where menu is "My Account" (menu name "myAccount").

You will land on the edit-menu page of this menu.
Make following two changes there:
1) In the drop-down menu "Menu status (active, passive)" select the option "Active".
2) In the "Access right for roles" area tick "authenticated".
Click "Save" button.
This actually makes the menu visible only on its viewing URL: [path-to-your-site]/menu/view/3. The number 3 is the id number of this menu at the moment of writing this, which may change during time.

To add it to a menu block and to make it visible through this menu block, do following:
Go to URL: [path-to-your-site]/block/list-blocks.
A block for this menu has already been created.
Click Edit link in the row, where "Block name (code)" is "myAccount".

Similar to menu, make following two changes here for the block too:
1) In the drop-down menu "Block status" select the option "Active (in use)".
2) In the "Access right for roles" area tick "authenticated".
Click "Save" button.

Now, after refreshing the page, you should see this menu for admin and authenticated role in the region menuArea (wherever it is in the theme which you are using) - in case of the default theme it is on left side, where Admin* menus are, if role is admin.

Such menu is just one example, how the authenticated users could access the functionality, which is meant for them.
Using the other manuals, you can change this menu, make your own menus, add pages, grant access rights for various functionality of module methods or do other things in the way as you wish.

If you are logged in as an user, who has authenticated role, then by clicking on the menu links nothing may happen. This is because the role authenticated has not yet access rights for the module method pages, where this menu is linking to. See next manual to check out how to grant such access rights.




Previous: 4.3. Change labels and other language phrases | Next: 4.5. Give access rights for authenticated users
Users and messages
1. Modules for managing users and messages
2. Sending automatic emails
2.1. Configure email authentication details
2.2. Manage message templates
3. Authenticating
4. Adjust the website for authenticated users
4.1. Access rights for unauthenticated visitors
4.2. Adjustable links on user block
4.3. Change labels and other language phrases
4.4. Prepare content for authenticated visitors
4.5. Give access rights for authenticated users
5. Registering new users
6. Multiple email addresses and user account recovery
7. Manage contact forms and emails
8. Manage postal addresses
9. User profile