FriendsOfREDAXO / neues

News-Verwaltung (Aktuelles, Pressemitteilungen, Pressestimmen, ...) für REDAXO 5 auf YForm-Basis
MIT License
12 stars 2 forks source link

Nur Einträge mit Status 1 oder 0 ausgeben #64

Closed eaCe closed 4 months ago

eaCe commented 4 months ago

Es werden nur noch Einträge die veröffentlicht sind ausgegeben, oder Einträge die geplant sind und deren Datum und Uhrzeit erreicht ist.

alxndr-w commented 4 months ago

Wieso Status 0?

Du kannst übrigens auch where('status', 1, '>=') statt whereRaw(...) verwenden

eaCe commented 4 months ago

Natürlich hast du recht. 0 weil geplant.

eaCe commented 4 months ago

@alxndr-w halt. Sorry 0 ist geplant, 1 ist veröffentlicht. Aber -1 wäre nun auch dabei. Das ist doch auch falsch

alxndr-w commented 4 months ago

Wieso wäre -1 da dabei?

Geplante Beiträge sollten nicht dargestellt werden. Höchstens vielleicht Mal, wenn man eingeloggt wäre. Alles ab 1 aufwärts ist richtig und so ist es doch auch in deinem Commit, oder nicht?

eaCe commented 4 months ago

Sollte geplant nicht dabei sein, wenn das Datum eingetreten ist?

alxndr-w commented 4 months ago

Doch, aber durch den Cronjob wird der Status ja dann auf 1 geändert und damit eine URL erzeugt.