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

On this page you can find all versions of the php package schachbulle/contao-spoiler-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-spoiler-bundle

Spoiler

Inhaltselemente für Contao, die Inhalte hinter einer anklickbaren Überschrift verbergen und per Klick aufklappen. Die Elemente sind dem Akkordeon des Contao-Kerns nachempfunden, kommen aber ohne JavaScript aus: Sie geben die HTML-Elemente details und summary aus, die jeder aktuelle Browser von sich aus auf- und zuklappt.

Es gibt drei Elemente in der Gruppe Spoiler:

Element Zweck
Einzelelement Ein Spoiler mit Überschrift und einem Text aus dem Rich-Text-Editor.
Umschlag Anfang Öffnet einen Spoiler, in dem alle folgenden Inhaltselemente liegen.
Umschlag Ende Schließt den Spoiler wieder.

Mit dem Umschlag lassen sich beliebige Inhaltselemente verbergen, etwa Bilder, Tabellen oder Downloads. Das Backend rückt die eingeschlossenen Elemente in der Liste ein, wie beim Akkordeon.

Voraussetzungen

Installation

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

Danach die Datenbank aktualisieren (Contao Manager oder contao:migrate), damit die beiden neuen Spalten in tl_content angelegt werden.

Bedienung

Im Artikel ein neues Inhaltselement anlegen und in der Gruppe Spoiler den Typ wählen.

Beim Einzelelement kommt darunter das Textfeld mit dem Rich-Text-Editor. Beim Umschlag folgen zwischen „Umschlag Anfang" und „Umschlag Ende" die Inhaltselemente, die verborgen werden sollen.

Markup

Einzelelement:

Umschlag (der Inhalt dazwischen stammt aus den eingeschlossenen Elementen):

Das Attribut open erscheint nur, wenn „Anfangs geöffnet" gesetzt ist. Eine unter „Experteneinstellungen" vergebene ID oder Klasse landet am details-Element.

Gestaltung

Das Bundle liefert bewusst kein Stylesheet mit; Browser stellen details und summary ohne weiteres Zutun bedienbar dar. Für das Theme genügt meist:

Wer anderes Markup braucht, legt eigene Fassungen der Templates ce_spoilerSingle.html5, ce_spoilerStart.html5 und ce_spoilerStop.html5 im Template-Verzeichnis der Installation ab oder wählt sie je Element unter „Template". Die Templates kennen die Variablen $this->summary (Überschrift), $this->open (Anfangszustand) und beim Einzelelement $this->text.

Prüfstand

tests/pruefstand.php bootet eine vorhandene Contao-Installation, in der das Bundle eingebunden ist, prüft Anmeldung, Paletten und Beschriftungen und rendert die drei Elemente im Frontend- und im Backend-Kontext:

Das Skript ist gegen Contao 4.13.58 und Contao 5.7.7 mit PHP 8.4.24 gelaufen.

Lizenz

LGPL-3.0-or-later — siehe LICENSE.

Autor

Frank Hoppe, schachbulle.de


All versions of contao-spoiler-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-spoiler-bundle contains the following files

Loading the files please wait ...