You are here: Home Page > Free Stuff > Restrict Entries

Restrict Entries To Member Groups

This extension enables another tab in the Publish page (configurable by weblog) that allows you to restrict that entry to certain member groups including the Guest group (anonymous site visitors).

It was originally conceived as a more robust way of ‘sandboxing’ content rather than either creating separate templates or defining member group/status conditionals within the main templates.

Updated to Version 1.0.3
Changed language file to avoid conflicts in CP

Updated to Version 1.0.2
Changed $EXT->script_ends variables to FALSE
Modified check for $EXT->last_call in publish_form_new_tab_block

Updated to Version 1.0.1
Added $EXT->last_call variable to place nice with other extensions

Checked for EE: 1.6.0 Download: ext.restrict_entries.1.0.3.php (Zipped)

Installation Instructions

  1. Unzip the archive
  2. Copy ext.restrict_entries.php to your /system/extensions/ folder
  3. Copy lang.restrict_entries.php to your /system/language/ folder
  4. Enable the extension in Utilities/Extensions Manager

Usage

In the extension settings you can define which weblogs will have the new tab on the Publish page. If you choose the ‘Select All’ radio button then all existing and new weblogs will have the new tab.

Choose to publish a new entry in a weblog that you have chosen in the settings. A new tab will appear called Groups. This has checkboxes for all member groups except Super Admin, Banned and Pending. All groups selected will not see that entry even if its status is Open. The Guest group is the one to select if you wish to stop anonymous visitors from viewing that entry.

Once the extension is installed a new column is shown in the Edit tab. This is called Restricted and shows which entries have had some sort of restriction applied.

Comments and suggestions are welcome either direct to hello@purple-dogfish.co.uk or in the Expression Engine forum thread.

Free Stuff Categories

Do you like and use any of this stuff?

If so then think about donating something. We can’t promise that we’ll spend it responsibly; Rach will probably want to spend it on toys for Skateboard, Greg will put it towards another Mighty Mouse (’cos his keep breaking).