[TYPO3-german] Abfrage mit typoscript

Nicole Cordes typo3 at cordes.co
Tue Apr 1 18:08:33 CEST 2014


Hallo Uwe,

das UNIX_TIMESTAMP(CONCAT(YEAR(NOW()) - 2,'-1-1')) sollte dir weiterhelfen.


Best regards,
Nicole

--
Nicole Cordes
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org

-----Ursprüngliche Nachricht-----
Von: typo3-german-bounces at lists.typo3.org [mailto:typo3-german-bounces at lists.typo3.org] Im Auftrag von Uwe Steinberg
Gesendet: Dienstag, 1. April 2014 16:46
An: typo3-german at lists.typo3.org
Betreff: [TYPO3-german] Abfrage mit typoscript

Hallo,

folgendes: Ich möchte eine über Abfrage über tt_content erstellen, die bewirkt, dass nur Einträge mit der starttime ab des vergangenen Jahres erscheinen, also im Moment  Einträge des Jahres 2013 bis heute.
Folgende Where-Klausel in der Abfrage funktioniert auch wunderbar:
..
where = (starttime > UNIX_TIMESTAMP('2012-12-31') ) ..

Mein Problem ist nun, wie bekomme ich es hin, dass z.B. am 01.01.2015 sich die Jahreszahl im UNIX-TIMESTAMP Parameter automatisch auf '2013' ändert. Wäre ja blöd, wenn ich das immer händisch Neujahr ändern müßte ;)

Viele Grüße
Uwe

_______________________________________________
TYPO3-german mailing list
TYPO3-german at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list