Verwendung: Automatische Jahreserwähnung bei News

Michi's Avatar

Michi

22 Oct, 2024 11:19 AM

Produkt: Oneo Contao
Contao-Version: 4.13.45

Hallo
Gibt es eine Möglichkeit, dass man im News Archiv irgendwie je nach Datum der Auflistung automatisch ein Jahr als Überschrift setzen kann ? So wäre es einfacher zu lesen, welches Datum zu welchem jahr gehört. Jetzt ist einfach alles untereinander und nach Dezember kommt dann Januar wieder, aber so sieht man nicht um welches Jahr es sich handelt.

  1. Support Staff 1 Posted by RockSolid Theme... on 24 Oct, 2024 11:50 AM

    RockSolid Themes's Avatar

    Das könnte sich vermutlich durch eine Anpassung des News-Templates sowie der Verwendung des parseArticles-Hook umsetzen lassen. Weitere Informationen zu dem Hook finden Sie in der Dokumentation von Contao: https://docs.contao.org/dev/reference/hooks/parseArticles/

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac