Download the PHP package heimseiten/contao-paste-into-nested-elements-bundle without Composer

On this page you can find all versions of the php package heimseiten/contao-paste-into-nested-elements-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-paste-into-nested-elements-bundle

In verschachtelte Elemente einfügen

Rüstet das Contao-6-Feature „In Nested-Elements einfügen" für Contao 5.7 nach.

Inhaltselemente lassen sich damit direkt aus der Übersicht eines Artikels in eine Elementgruppe einfügen — ohne deren Kindansicht vorher zu öffnen. Ablauf wie gewohnt: Element über Kopieren oder Verschieben in die Zwischenablage legen, dann am Zielelement auf Einfügen klicken.

Wo der Knopf erscheint

An jedem Element, das Kindelemente aufnehmen kann, und nur bei gefüllter Zwischenablage. Welche Elemente das sind, beantwortet der FragmentCompositor des Kerns — also alles, was mit #[AsContentElement(nestedFragments: true)] ausgezeichnet ist. Im Kern sind das Elementgruppe, Akkordeon und Slider; Elemente aus anderen Erweiterungen werden ohne Zutun mit erfasst, weil hier keine Liste von Elementtypen gepflegt wird.

Ein Element lässt sich nicht in sich selbst oder in eines seiner Kindelemente verschieben — in dem Fall erscheint der Knopf abgeblendet.

Was die Erweiterung nicht tut

Die Darstellung der Listen bleibt unverändert. Ergänzt wird ausschließlich der fehlende Knopf.

Unterschied zu Contao 6

Contao 6 fügt am Ende der Zielgruppe an. Diese Erweiterung fügt am Anfang ein, weil Contao 5.7 dafür nur PASTE_INTO kennt; das Gegenstück PASTE_INTO_APPEND kam erst mit Contao 6. Die Reihenfolge lässt sich anschließend wie gewohnt per Ziehen ändern.

Der Knopf sitzt außerdem am Ende der Operationen einer Zeile, während Contao 6 ihn direkt neben Danach einfügen setzt. Diese Stelle im DC_Table ist in Contao 5.7 nicht erweiterbar, ohne Kerncode zu kopieren.

Wie es funktioniert

Die Einfüge-Mechanik bringt Contao 5.7 bereits mit: mode=2 fügt in einen Datensatz ein, und der Parameter ptable wird für selbstreferenzierende Tabellen ausgewertet (DC_Table::getPtable(), „nested elements case"). Es fehlt allein der Knopf, der diese Adresse aufruft — deshalb kommt die Erweiterung ohne Eingriff in den Kern aus und registriert lediglich eine zusätzliche Zeilen-Operation.

Beschriftung und Symbol stammen ebenfalls aus dem Kern (DCA.pasteinto, pasteinto.svg).

Voraussetzungen

PHP 8.3+, Contao 5.7

Lizenz

GPL-3.0-or-later


All versions of contao-paste-into-nested-elements-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
contao/core-bundle Version ^5.7
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 heimseiten/contao-paste-into-nested-elements-bundle contains the following files

Loading the files please wait ...