Skip to main content

Events with simplelayout.

Project description

ftw.events is a Plone add-on allowing you to add containers (event folders) containing items representing an event (event page). It is backed by plone.app.event and is powered by ftw.simplelayout.

This Plone add-on is compatible with Plone 4.3.x

Installation

  • Add the package to your buildout configuration:

[instance]
eggs +=
    ...
    ftw.events
  • Install the “default” GenericSetup profile.

Usage

Start by creating a container which will hold the events by adding a event folder. Add as many event pages to the event folder as you like.

Mopage Support

ftw.events provides integration for the mopage mobile app (http://web.anthrazit.org/).

Data Endpoint

The view mopage.events.xml returns an XML-feed with the latest events within the context it is called. It can becalled on any type of object.

  • The mopage-API expects a partnerid and a importid. They are incldued when submitted via GET-parameter, e.g.: http://foo.com/events/mopage.events.xml?partnerid=123&importid=456

  • The endpoint returns only 100 events by default. This can be changed with the parameter ?per_page=200.

  • The endpoint returns Link-headers in the response with pagination links.

Trigger behavior

The behavior ftw.events.behaviors.mopage.IPublisherMopageTrigger can be added on a event folder in order to configure automatic notification to the mopage API that new events are published.

In order for the behavior to work properly you need an ftw.publisher setup. Only the receiver-side (public website) will trigger the notification. A configured collective.taskqueue is required for this to work.

Buildout example:

[instance]
eggs +=
    ftw.events[mopage_publisher_receiver]

zope-conf-additional +=
    %import collective.taskqueue
    <taskqueue />
    <taskqueue-server />

Then enable the behavior for the event folder type and configure the trigger with the newly availabe fields.

Background

The name of the content type event page has been chosen in order to avoid confusion with the content type event of Plone.

Development

Python:

  1. Fork this repo

  2. Clone your fork

  3. Shell: ln -s development.cfg buildout.cfg

  4. Shell: python boostrap.py

  5. Shell: bin/buildout

Run bin/test to test your changes.

Or start an instance by running bin/instance fg.

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

ftw.events-1.11.0.tar.gz (57.3 kB view details)

Uploaded Source

File details

Details for the file ftw.events-1.11.0.tar.gz.

File metadata

  • Download URL: ftw.events-1.11.0.tar.gz
  • Upload date:
  • Size: 57.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/2.7.15

File hashes

Hashes for ftw.events-1.11.0.tar.gz
Algorithm Hash digest
SHA256 28109729d9d16868486930fb70666f7d8f80172548d8044d7a83573e0448d2a1
MD5 aa84eeb236176ebdef9dc398140714fb
BLAKE2b-256 3c685d481d9373d65e61c43f5ffefe329f1e0395c91f63aff0e8dc30d8bf6f24

See more details on using hashes here.

Supported by

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