Skip to main content

A Plone Portlet which displays custom recent types

Project description

Overview

A Plone Portlet which does an adapter lookup to fetch the portal type to use in the query for recently changed portlets.

Rationale

This is crratching an itch of a customer, which wants to display only recent “news” on a news page etc. Instead of hard-coding the portal type, we do a adapter lookup.

Usage

Users then can register adapters like:

<adapter
    for="Products.BabpnProducts.browser.search.BabpnSPSearchView"
    provides="inquant.portlet.contextualrecentitems.interfaces.ITypeNameProvider"
    factory=".adapters.SPTypeProvider"
    />

And have the actual adapter look like:

class BizOpTypeProvider(object):
    def __init__(self, context):
        pass
    type = "BusinessOpportunity"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page