Skip to content
This repository

person_events tag enhancement (and possibly others) #48

barryrowlingson opened this Issue · 0 comments

1 participant


Currently the peson_events tag is hardcoded to show only all_forthcoming events, but I wanted to list all people's talks on our people's pages (or maybe limit to the last 5...)

Change the person_events function defn in to:

  def person_events(context, view="all_forthcoming"):

and one line:

instance.view = view

keeps the current behaviour as default, but allows:

{% person_events "archive" %}

to display all events where a person is featured.

possibly some or all of the other variables hard-coded into the instance variable in the person_events function could also be optionally set this way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.