contao / core

Contao 3 → see contao/contao for Contao 4
GNU Lesser General Public License v3.0
492 stars 213 forks source link

Template für RSS-Feeds #8830

Open balduin-kowalski opened 6 years ago

balduin-kowalski commented 6 years ago

Anscheinend gibt es auch in Contao4 immer noch keine Möglichkeit die Ausgabe von Event-Feeds standardmässig über ein Template anzupassen.

Das wäre aber besonders für Event-Feeds wichtig. Aktuell werden Datum, Uhrzeit und Eventtitel zusammen in das selbe Feld gepackt und die Event-Location wird überhaupt nicht ausgegeben - das ist nicht gerade optimal. Auch das Ausgabeformat von Datum und Uhrzeit lässt sich nicht anpassen. Ich glaube nicht, daß die Event-Feeds in dieser Form einen besonders großen Anreiz zur Verwendung darstellen.

fritzmg commented 6 years ago

Events have their own namespace (xmlns:ev="http://purl.org/rss/1.0/modules/event/") which could be used for this. Start date, end date and location could then be added to an item like this:

<ev:location>Washington, DC</ev:location>
<ev:startdate>2001-09-18</ev:startdate>
<ev:enddate>2001-09-21</ev:enddate>

See also https://github.com/contao/core-bundle/issues/1243