Giter Club home page Giter Club logo

ftw.events's Introduction

ftw.events

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

  • Add the package to your buildout configuration:
[instance]
eggs +=
    ...
    ftw.events
  • Install the "default" GenericSetup profile.

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.

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

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.

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.

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

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.

This package is copyright by 4teamwork.

ftw.events is licensed under GNU General Public License, version 2.

ftw.events's People

Contributors

bierik avatar elioschmutz avatar jone avatar maethu avatar mbaechtold avatar nachtalb avatar shylux avatar tinagerber avatar tschanzt avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

webcloud7

ftw.events's Issues

plone.app.events resets start/end index

plone.app.events replaces the start and end index by a RecurringDateIndex (before DateIndex).
BUT without reindexing the new indexes, this result in every content loses the start and end index data.

This destroys every listing which tries to sort for those indexes, because the catalog don't know how to sort None, or MissingValue in a context of a DateIndex.

Solution:

  • Reindex start and end index after installing ftw.events.

Make addable on Plone Site?

Every time i install this package i make the EventFolder and the EventListingBlock addable on the Plone Site.
Should we put this in the policy of ftw.events?

Possible additions to event_listing view for EventFolder

Possible additions for event_listing view added in #38

  • Archive portlet and ?archive=SOME_DATE just like in ftw.news
  • Option to only show future events / no past events
  • Option to change the batch size
  • Option for length of description
  • Option to show image, description

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.