Download the PHP package trilobit-gmbh/contao-constants-bundle without Composer
On this page you can find all versions of the php package trilobit-gmbh/contao-constants-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download trilobit-gmbh/contao-constants-bundle
More information about trilobit-gmbh/contao-constants-bundle
Files in trilobit-gmbh/contao-constants-bundle
Package contao-constants-bundle
Short Description Contao 4 / Contao 5 constants bundle
License LGPL-3.0-or-later
Informations about the package contao-constants-bundle
Constants Bundle
Das Constants Bundle fügt dem Backend von Contao den Punkt Konstanten hinzu, wo Sie mit einer Bezeichnung und einem dazugehörenden Wert eine oder mehrere Konstanten festlegen können. Diese können dann wiederum durch einen Insert-Tag überall in ihrer Contao Installation eingefügt werden. Das hat den Vorteil das Sie bestimmte Werte an mehreren Stellen einfügen können, sie aber nicht mehr alle einzeln ändern müssen, sondern dies nun über den Punkt Konstanten machen könne. Zusätzlich ist es möglich Konstanten mit einem weiteren Insert-Tag statt eines Wertes anzulegen, wodurch das Einbinden von Bildern oder einzelnen Artikeln ermöglicht wird.
Aufbau
Damit die Erweiterung den Insert-Tag als solchen erkennen kann, muss eine bestimmte Struktur benutzt werden. Diese sieht wie folgt aus:
Dies würde dann den angegebenen Wert der Konstante "Mitarbeiter" anzeigen.
Constants Bundle
The Constants Bundle adds Constants to the backend of Contao, where you can specify one or more constants with a label and its associated value. These can then be inserted through an insert tag throughout your Contao installation. This has the advantage that you can insert certain values in several places, but you no longer have to change them all individually. In addition, it is possible to create constants with another insert tag instead of a value, which allows the inclusion of images or individual articles.
Structure
For the extension to recognize the insert tag as such, a particular structure must be used. This could look like this:
This would then output the specified value of the constant "Employee".
Screenshots
Konstanten Übersicht / Constants overview
Einfache Konstante / Simple constant
Konstante mit einem Insert-Tag / Constant with an insert-tag
Konstante in einem Artikel / Constants in an article
Ausgabe der Konstante / Output of the constants
Installation
Install the extension via composer: trilobit-gmbh/contao-constants-bundle.
Configuration
You can define the following configuration parameters via your config.yml
file:
Compatibility
- Contao version ~4.9
- Contao version ~4.13
- Contao version ~5.0
All versions of contao-constants-bundle with dependencies
contao/core-bundle Version ^4.9 || ^5.0
codefog/contao-haste Version ^4.0 || ^5.0