|
How to protect my articles? |
|
|
|
Did you read the "How to protect my sections?" and "How to protect my categories" articles?
- Navigate to your ACL root folder.
- Go to the subfolder calls permissions.
- Create a subfolder with name "com_content".
Why "com_content"? This is component name for your articles. - Now we need to think of the Joomla! articles hierarchie, that means, we have the section, categories inside and the articles inside categories.
Starting with Joomla! FAQs
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 single article?
A) Manually
Let's continue with our example. We want to restrict the access to article What's New in 1.5? for group01 and group02. That means, the articles will be visible for the both groups only.
If you set the permission for ARTICLE directly, you can not set the different one to parent categories or sections.
- Create a folder with section ID name. I create a folder calls "4" (ID for section "About Joomla!" is 4).
- 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).
- Navigate to the "29" folder. Create a folder with the article ID. I created a folder calls "22" (ID for What's New in 1.5? article is 22).
- Go to the article ID folder (22) and create the subfolder calls "view" (because of restriction for article viewing).
- Then you go to the "view" folder and create a file with name based on your group name. That means, I create two files call group01.group and group02.group.
Directory list:
--- com_content (folder - extension)
------ 4 (folder - section ID)
--------- 29 (folder - category ID)
------------ 22 (folder - article ID)
--------------- view (folder - Joomla! task)
------------------ group01.group (file - group name)
------------------ group02.group (file - group name)
- That's all :) The article What's New in 1.5? is restricted to users "user1, user2, user3" (group01, group02)
B) Automatically
Notes:
- Visit Article Manager page. There
is a FACL icon next to the toolbar ones.
- Click on FACL icon.
 - Now you can manage the permission from Joomla! administration directly.
|