#2955 Content Plugin

Parent Category:
DPCalendar
Category:
Joomla plugins
Last Updated:
Allon Moritz, Thursday, 26 March 2020 15:53 (Thursday, 26 March 2020)
Created:
Wednesday, 23 September 2015 00:14 (Wednesday, 23 September 2015)
Hits:
5686

Introduction

The content plugin for DPCalendar allows to integrate a list of events into any content such as an article description.

The following example will print the next three events from the calendar with an ID of 42. It will render a list of paragraphs, each one with the title and date of the event.

 {{#events calid=42 limit=3}}<p>{{date}} {{title}}</p>{{/events}}

Parameters

The following parameters can be used within the {{#events}} block:

  • calid
    The calendar ID the events should be filtered. If you want all, including the external ones, put root. If you want an external one like your Google calendar, put g-3, where 3 is the ID of the external Google calendar in the Google plugin.
  • eventid
    The single event ID which should be shown
  • limit
    How many events should be shown
  • order
    The order field.
  • orderdir
    In which order direction they should be shown, as or desc.
  • tagid
    A comma separated list of tag ID's to filter for.
  • featured
    If only filtered events should be included in the list.
  • startdate
    The start date, can be relative like -1week or an absolute ISO 8601 date like 2016-09-23.
  • enddate
    The end date, can be relative like -1week or an absolute ISO 8601 date like 2016-09-23.

For more information about the mustache syntax can be found in the Output rendering chapter.

Options

Comments (0)

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.