DEPRECATION WARNING

This documentation is not using the current rendering mechanism and will be deleted by December 31st, 2020. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

RSS feed

This section describes how you add a RSS feed for the list of events. The implementation of the RSS feed in sf_event_mgt is similar to the RSS feed implementation in the news extension from Georg Ringer. Many parts of the RSS feed documentation are taken from his extension with small modifications to fit sf_event_mgt.

The template for the RSS feed can be found in the file Resources/Private/Templates/Event/List.xml To configure sf_event_mgt to use this template, simply set the format of the output als shown below:

plugin.tx_sfeventmgt.settings.list.format = xml

RSS feed by TypoScript

One way to generate the RSS feed is to use TypoScript. Add to following TypoScript to your site and adopt it to your needs:

[globalVar = TSFE:type = 9918]
config {
  disableAllHeaderCode = 1
  xhtml_cleaning = none
  admPanel = 0
  debug = 0
  disablePrefixComment = 1
  metaCharset = utf-8
  additionalHeaders = Content-Type:application/rss+xml;charset=utf-8
  additionalHeaders.10.header = Content-Type:application/rss+xml;charset=utf-8
  absRefPrefix = {$plugin.tx_sfeventmgt.rss.channel.link}
}

pageEventRSS = PAGE
pageEventRSS {
  typeNum = 9918
  10 < tt_content.list.20.sfeventmgt_pievent
  10 {
    switchableControllerActions {
      Event {
        1 = list
      }
    }
    settings < plugin.tx_sfeventmgt.settings
    settings {
      detailPid = 4
      storagePage = 3
      list {
        format = xml
      }
    }
  }
}
[global]

This example will show all events which are saved on the page with uid 4. The detail view page is the one with uid 4.

The RSS feed itself can be found with the link /?type=9918.

RSS feeds by using a plugin

If you want to use the sf_event_mgt plugin to configure the settings of your RSS feed, then just configure the event plugin as if you are creating a list view (set startin point, categories, detail page, …)

Next, add a new TypoScript template to the page and insert the following TypoScript to the setup section

page = PAGE
page.10 < styles.content.get

config {
   disableAllHeaderCode = 1
   xhtml_cleaning = none
   admPanel = 0

   metaCharset = utf-8
   additionalHeaders = Content-Type:application/rss+xml;charset=utf-8
   additionalHeaders.10.header = Content-Type:application/rss+xml;charset=utf-8
   disablePrefixComment = 1
}

# set the format
plugin.tx_sfeventmgt.settings.list.format = xml

# delete content wrap
tt_content.stdWrap >
tt_content.stdWrap.editPanel = 0

Important If the sf_event_mgt plugin is located in different column than default (0), then you extend the TypoScript as following:

page.10.select.where = colPos=1

RSS feed configuration

Don’t forget to configure the RSS feed properly as the sample template won’t fulfill your needs completely. Please look up the constants and change the mentioned settings.

plugin.tx_sfeventmgt {
    rss.channel {
        title = Feed title
        description =
        link = http://domain.tld/
        language = en-gb
        copyright = TYPO3 Event management and registration
        category =
        generator = TYPO3 EXT:sf_event_mgt
    }
}