How to protect my sections? Print E-mail
(4 votes)

 

Did you create your custom groups?

 

  1. Navigate to your ACL root folder.
  2. Go to the subfolder calls permissions.
  3. Create a subfolder with name "com_content".
    Why "com_content"? This is component name for your articles.
  4. Now we need to think of the Joomla! articles hierarchie, that means, we have the section, categories inside and the articles inside categories.

 

Example:

ARTICLE LAYOUT

Sections (ID)
Categories (ID)
Articles (ID)
 
About Joomla! (4) The Project (25) Support and Documentation (20)
  Joomla! License Guidelines (5)
  The CMS (29) What's New in 1.5? (22)
 
News (1) Latest (1) Welcome to Joomla! (1)
  Joomla Community Portal Online (45)
  The New Joomla Security Strike Team (44)
  Newsflash (3) Newsflash 1 (2)
  Newsflash 2 (3)


GROUPS

Groups
Users
 
group01 user1
  user2
  user3
 
group02 user2
 
group03 user4
  user5
  user6

 

How to protect the whole section?

A) Manually

Let's continue with our example. We want to restrict the section About Joomla! for group01 and group03. That means, all categories and articles inside are visible for the group01 and group02 only.

If you set the permission for SECTION, you can not set the different one to children categories or articles inside.

 

  1. Create a folder with section ID name. I create a folder calls "4" (ID for section About Joomla! is 4).
  2. Navigate to the "4" section folder and create the subfolder calls "view" (because of restriction for article viewing).
  3. Then you go to the "view" folder and create a file with name based on your group name. That means, I create two files with names group01.group and group03.group.

    Directory list:

    --- com_content (folder - extension)
    ------ 4 (folder - section ID)
    ------ view (folder - Joomla! task)
    --------- group01.group (file - group name)
    --------- group03.group (file - group name)

  4. That's all :) The section About Joomla! is restricted to users "user1, user2, user3" (group01) and for "user4, user5. user6" (group03).

 

B) Automatically

Notes:

 

  1. Visit Section Manager page. There is a FACL icon next to the toolbar ones.
  2. Click on FACL icon.

    File ACL toolbar icon

  3. Now you can manage the permission from Joomla! administration directly.