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

File details

Details for the file inquant.portlet.contextualrecentitems-0.2dev-r58889.tar.gz.

File metadata

File hashes

Hashes for inquant.portlet.contextualrecentitems-0.2dev-r58889.tar.gz
Algorithm Hash digest
SHA256 56a2117270767e6651a3d638ba968ffc03d12c7b0d6f25d2a4bd90bf735874b9
MD5 df52a2ed424dabbbed35e8caeafe937f
BLAKE2b-256 e680791b0d158bf383cf6949b43d7705d595cd5bd6dea3c976ef451bb79969ac

See more details on using hashes here.

File details

Details for the file inquant.portlet.contextualrecentitems-0.2dev_r58889-py2.4.egg.

File metadata

File hashes

Hashes for inquant.portlet.contextualrecentitems-0.2dev_r58889-py2.4.egg
Algorithm Hash digest
SHA256 537a5317379d88472ad14ef9e7e8b86bf895078a74d951e5c213a82801ad7edc
MD5 544e54355537f01f0652811e24133845
BLAKE2b-256 1cf27a67235dba19e71e6f586ce27f9717d6911d463c72cf1acde1c667a46fe2

See more details on using hashes here.

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