Warning

This document hasn't been checked for compatibility with current versions of Plone. Use at your own risk.

Displaying only published items in folder listings to anonymous users.

by Mike Takahashi last modified Dec 30, 2008 03:02 PM
If you don't do this, Plone's folder listing option will display both visible and published items to anonymous users.

By default in Plone, if you create a folder and do not assign it a default page, it will display the entire contents of its folder regardless of each items state to anonymous users (users who are not logged in). Some users may not want to display visible items because technically they are drafts that are not ready to be seen. 

To allow Plone’s folder listing to only display items that are published for anonymous users, you need to make a modification to the portal workflow as follows: 

  1. In the ZMI, click on portal_workflow
  2. Click on the "Contents" tab on the top
  3. Click on plone_workflow
  4. Click on the “states” tab on the top
  5. Click on “visible”
  6. Click on the “Permissions” tab on the top
  7. Uncheck “Acquire permission settings” and “Anonymous” for the “View” Permission
  8. Check “Owner” or whatever other roles you would like to be able to see visible content for the “View” Permission
  9. Go back and click on “portal_workflow” and scroll to the bottom and click on “Update security settings”.  THIS IS VERY IMPORTANT.  If you don’t do this, these settings will not take effect.

Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.