We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Extension: Category Rights

Development and Programming

Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

The attached add-on files may be out of date. Please visit Devot-ee for the latest versions.

This extension enables you to restrict posting to weblogs on a per category basis.

In ExpressionEngine permissions are controlled by access to templates and weblogs. Per-category access control is currently not possible. For restricting posting and editing privileges separate weblogs are considered the way to go. This creates in some cases undesirable dilemma “categories vs. weblogs”: although more neat and clean design of the website can be achieved by using categories, the need for controlling permissions forces to introduce additional weblogs.

It seems that using weblogs instead of categories for the only reason of member access control is wrong. A feature of user access control should not be achieved by changing design decisions at fundamental level; features for access control should be either in-built or achieved using some add-on.

Consider this real-world example. There are currently 5 similar publishing projects on the website. Participators in each project post entries in 6 weblogs. Entries belonging to different publishing projects are differentiated using categories. There is need for restricting editing and posting privileges so that a member belonging to some member group could edit and post only entries in certain weblog in certain category. Restricting access both by weblog and by category would be natural way to go. But since access control by category is not possible, to achieve needed control administrator is forced to think hard about “categories vs. weblogs” dilemma and introduce 24 additional weblogs (4 projects x 6 weblogs).

There is already one extension which enables restricting access to weblogs on per category basis - Category Permissions. It works great, but I was dissatisfied with its UI and needed some additional functionality - the possibility to set permitted categories as default.

So, I did some hacking and here is the result - Category Rights extension.

       
Philip Zaengle's avatar
Philip Zaengle
293 posts
16 years ago
Philip Zaengle's avatar Philip Zaengle

fantastic. using this in a project next week!

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

Just released version 1.0.1. A serious bug was fixed - categories not being highlighted on Edit page.

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

Another bug fix release - 1.0.2. Category Rights not playing well with jQuery for Control Panel was fixed.

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

Hi,

I released version 1.0.3 of Category Rights extension. In this release a bug - child category never displayed as selected in Edit page - was fixed.

Everyone who uses this extension is recommended to upgrade.

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

Hi,

I released version 1.0.4 of Category Rights extension.

In this release a couple of bugs were fixed:

1) Category Rights not playing well with other extensions which modify Edit tab’s search form;

2) right category not being selected in Edit tab’s search results page.

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

Hi,

I released version 1.0.6 of Category Rights extension. In this release a bug was fixed - category selectbox not being displayed in certain cases on Edit tab’s search form.

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

Hi,

I released version 1.1 of Category Rights extension.

New feature:

Now each member’s permitted categories will be listed in “View Members” page in CP.

       
klick's avatar
klick
49 posts
16 years ago
klick's avatar klick

That sounds good. Thanks for that 😊 Will give it a try.

       
Paradise's avatar
Paradise
84 posts
16 years ago
Paradise's avatar Paradise

After a long search there is what i need. But one wish i have if possible 😊

I have a cat group “Products” and i need to ban putting entrys in parent categories but still need to show that parent cat.

Lets say: Bikes Cars |_V6 |_V8 |_pedal cars Boots

So i wan’t the author to have rights for V6 and pedal cars but still see the other cats. Maybee greyed out? Maybee an extra check-box in the settings for hide or show?

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

Hi,

What the point of seeing categories which you cannot select?

       
Paradise's avatar
Paradise
84 posts
16 years ago
Paradise's avatar Paradise

To know where you are. That you see that V8 is in cars and that it matchs the site structure, so you see the path the visitor has to click through on the side.

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas
To know where you are. That you see that V8 is in cars and that it matchs the site structure, so you see the path the visitor has to click through on the side.

It seems that it is enough that you see site structure in the frontend; there is hardly need to see site structure doing each step in the backend.

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

Hi,

I released version 1.2 of Category Rights extension. In this version a bug was fixed - a user having right to edit entries posted by other members being able to see on Edit page entries posted into categories he has not permitted to post in.

       
hothousegraphix's avatar
hothousegraphix
851 posts
16 years ago
hothousegraphix's avatar hothousegraphix
Hi, What the point of seeing categories which you cannot select?

To further illustrate the point Paradise is trying to make. Let’s say I have 3 Category Groups each with similar Sub-Category sets and I want to restrict access to the parent categories so they cannot be edited: Eye Color - Blue - Brown - Green - Gray

Hair Color - Black - Blong - Brown - Gray - Silver

Favorite Color - Blue - Brown - Green - Gray - Pink - Red

Without the ability to view the parent - which in this case would not be editable, all context is lost for the sub-categories. - Blue - Brown - Green - Gray

  • Black
  • Blong
  • Brown
  • Gray
  • Silver

  • Blue

  • Brown
  • Green
  • Gray
  • Pink
  • Red

This make sense?

       
1 2

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.