Download the PHP package schachbulle/contao-showfromto-bundle without Composer

On this page you can find all versions of the php package schachbulle/contao-showfromto-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contao-showfromto-bundle

Showfromto

Hilfe für Redakteure in Contao: Die Backend-Listen der Inhaltselemente und Nachrichten zeigen in dunkelgelber Schrift, wie es um den Anzeigezeitraum („Anzeigen ab" / „Anzeigen bis") steht. So fällt sofort auf, warum ein veröffentlichtes Element im Frontend nicht erscheint — oder wann es wieder verschwindet.

Zustand Hinweis
vor „Anzeigen ab", ohne „Anzeigen bis" (noch nicht sichtbar, erst ab 23.09.2026 00:00)
vor „Anzeigen ab", mit „Anzeigen bis" (noch nicht sichtbar, erst ab 23.09.2026 00:00 bis 30.09.2026 23:59)
sichtbar, mit „Anzeigen bis" (sichtbar bis 30.09.2026 23:59)
„Anzeigen bis" ist erreicht (nicht mehr sichtbar, seit 30.09.2026 23:59)
sichtbar ohne Ende, oder kein Zeitraum gesetzt kein Hinweis

Datum und Uhrzeit folgen dem Format aus den Contao-Einstellungen (Datum- und Zeitformat).

Wo der Hinweis erscheint

Ob ein Element sichtbar ist, wird genauso entschieden wie im Frontend: sichtbar ist, was start <= jetzt und stop > jetzt erfüllt, mit der aktuellen Zeit auf die volle Minute abgerundet.

Voraussetzungen

Installation

Über den Contao Manager nach „showfromto" suchen, oder auf der Konsole:

Das Bundle legt keine Datenbankfelder an und hat keine Einstellungen.

Aussehen anpassen

Der Hinweis ist ein span mit der Klasse showfromto und je nach Zustand showfromto--bald, showfromto--sichtbar oder showfromto--abgelaufen. Die Farbe steht in bundles/contaoshowfromto/showfromto.css (hell #8a6a00, im Dunkelmodus von Contao 5 #e0b400) und lässt sich in einem eigenen Backend-Stylesheet überschreiben.

Funktionsweise

Contao 4.13 und Contao 5 bauen die Listen unterschiedlich auf: 4.13 erzeugt die Zeile eines Inhaltselements im child_record_callback (tl_content::addCteType()) als fertiges HTML, Contao 5 im label_callback des ContentElementViewListener als Feld aus Überschrift, Vorschau und Zustand. Nachrichten haben in beiden Fassungen keinen eigenen Rückruf.

Das Bundle legt deshalb im onload_callback von tl_content und tl_news einen Mantel um den jeweils gesetzten Rückruf: Es merkt sich das Original, ruft es beim Aufbau der Liste auf und ergänzt dessen Ergebnis um den Hinweis. So bleibt die Darstellung des Kerns — und die eines anderen Bundles, das hier einen eigenen Rückruf setzt — erhalten.

Prüfstand

tests/pruefstand.php bootet eine Contao-Installation, in der das Bundle eingebunden ist, und prüft Anmeldung, Zeitlogik, beide Listenformen und die echten Kernrückrufe mit einem Inhaltselement aus der Datenbank (der Zeitraum wird nur im Speicher gesetzt):

Lizenz

LGPL-3.0-or-later


All versions of contao-showfromto-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
contao/core-bundle Version ^4.13 || ^5.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package schachbulle/contao-showfromto-bundle contains the following files

Loading the files please wait ...