How to protect my categories? Print E-mail
(0 votes)

 

Did you read the "How to protect my sections?" article?

 

  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 category?

A) Manually

Let's continue with our example. We want to restrict the category  The CMS (29) for group03. That means, all articles inside are visible for the group03 only.

If you set the permission for CATEGORY, you can not set the different one to 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. Then you create a folder with category ID. I created the folder calls "29" (category The CMS has ID number 29).
  3. Go to the 29 folder and create the subfolder calls "view" (because of restriction for article viewing).
  4. Then you go to the "view" folder and create a file with name based on your group name. That means, I create one file calls group02.group.

    Directory list:

    --- com_content (folder - extension)
    ------ 4 (folder - section ID)
    --------- 29 (folder - category ID)
    ------------ view (folder - Joomla! task)
    --------------- group02.group (file - group name)

  5. That's all :) The category The CMS is restricted to users "user2" (group02)

 

B) Automatically

Notes:

 

  1. Visit Category 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.