collective.allowsearch 0.1.4

Provides an interface and a default adapter to allow users to search the catalog independent of the View permission
collective.allowsearch is a Plone product that provides an interface and a default adapter to allow users to search the catalog independent of the View permission.

Installation

Add this package to your buildout or policy package, or add a ZCML slug for it to your etc/site.zcml.

Usage

Simply mark any content which you want to be visible in searches for anonymous users with the IAllowAnonymousSearchMarker interface.

This can be done programmatically or using ZCML like:

< configure
 xmlns="http://namespaces.zope.org/zope"
 xmlns:five="http://namespaces.zope.org/five"
 i18n_domain="collective.allowsearch" >

 < include package="collective.allowsearch" / >


 < !--
 EXAMPLE: Allow all ATDocument objects to be found by Anonymous users.
 NOTE: This does _NOT_ change the View permissions in any way.
 -- >
 < five:implements
 class="Products.ATContentTypes.content.document.ATDocument"
 interface="collective.allowsearch.interfaces.IAllowAnonymousSearchMarker"
 / >


< /configure >

That's it. See the package's doctest for more information.

last updated on:
July 11th, 2011, 7:54 GMT
price:
FREE!
homepage:
svn.plone.org
license type:
GPL (GNU General Public License) 
developed by:
Stefan Eletzhofer
category:
ROOT \ Internet \ Plone Extensions
collective.allowsearch
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT