Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Introduction

Provides a component which displays a random article.

The following features for raptus.article are provided by this package:

Components

  • Random content (Random article with it’s image displayed over the whole width)

  • Random content left (Random article with it’s image displayed on the left side)

  • Random content right (Random article with it’s image displayed on the right side)

  • Random content teaser (Random article with it’s image displayed over the whole width and displayed above the columns)

Dependencies

  • raptus.article.nesting

Installation

To install raptus.article.randomcontent into your Plone instance, locate the file buildout.cfg in the root of your Plone instance directory on the file system, and open it in a text editor.

Add the actual raptus.article.randomcontent add-on to the “eggs” section of buildout.cfg. Look for the section that looks like this:

eggs =
    Plone

This section might have additional lines if you have other add-ons already installed. Just add the raptus.article.randomcontent on a separate line, like this:

eggs =
    Plone
    raptus.article.randomcontent

Note that you have to run buildout like this:

$ bin/buildout

Then go to the “Add-ons” control panel in Plone as an administrator, and install or reinstall the “raptus.article.default” product.

Note that if you do not use the raptus.article.default package you have to include the zcml of raptus.article.randomcontent either by adding it to the zcml list in your buildout or by including it in another package’s configure.zcml.

Usage

Components

Navigate to the “Components” tab of your article and select one of the random content components and press “save and view”. Note that at least one article has to be contained in the article in which this component is active.

Developer Manual

Note: You find a developer manual for raptus.article at raptus.article.core. Please have look there if you need more information.

Code overview

Components

plone.abovecontentbody

  • raptus.article.randomcontent.left

  • raptus.article.randomcontent.right

  • raptus.article.randomcontent.full

plone.portaltop

  • raptus.article.randomcontent.teaser

Interfaces

file: interfaces.py

  • IRandomContent (Provider for a random article)
    • getArticle - method (Returns a random article (catalog brain))

Schema extender

file: extender.py

  • ArticleExtender - for IArticle

Changelog

2.0b5 (2010-11-10)

  • Added French translations

2.0b4 (2010-10-24)

  • Set zip_safe flag to False

2.0b3 (2010-10-21)

  • Updated readme and manual

2.0b2 (2010-10-20)

  • First public release

Metadata

Release files for raptus.article.randomcontent 2.0b5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for raptus.article.randomcontent 2.0b5
File Size Uploaded
raptus.article.randomcontent-2.0b5.tar.gz 17.8 kB Details

Release files / raptus.article.randomcontent-2.0b5.tar.gz

Download URL raptus.article.randomcontent-2.0b5.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a6b89d1d82cce8bcbd4dc4ae4e24e02b37a631a7ad4f5cc04aeebdb29bf45533
BLAKE2b-256 checksum
How to use checksums
ce65c5541e6308ad6396df5cece2efaa3f7b10ecc799e393ef87081b3b9d3fb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page