diff --git a/docs/manual/guides/maintenance-template.de.md b/docs/manual/guides/maintenance-template.de.md index 733eacd1d..516be595a 100644 --- a/docs/manual/guides/maintenance-template.de.md +++ b/docs/manual/guides/maintenance-template.de.md @@ -90,7 +90,9 @@ Wird die komplette Contao-Installation über die Kommandozeile in den Wartungsmo Das machen wir in diesem Beispiel für alle Errortemplates. Für eine updatesichere Anpassung kopieren wir uns das Originaltemplate `vendor/contao/core-bundle/src/Resources/views/Error/layout.html.twig` nach `/templates/bundles/ContaoCoreBundle/Error/` -{{< version-tag "5.1" >}} befindet sich das Originaltemplate unter `vendor/contao/core-bundle/templates/Error/layout.html.twig` +{{< version-tag "5.1" >}} befindet sich das Originaltemplate unter `vendor/contao/core-bundle/templates/Error/layout.html.twig`. + +{{< version-tag "5.5" >}} muss das Template nach `/templates/error/` kopiert werden. Dort setzen wir unser eigenes Logo innerhalb des DIV's mit der Klasse `header-logo` ein. Du kannst dafür ein normales image-Tag verwenden oder wie im Originaltemplate ein Inline-SVG. @@ -124,4 +126,6 @@ Weitere Informationen zur Anpassung von Twigtemplates findest du in der [Twig-Do Anstatt nur einzelne Texte anzupassen, kannst du auch einfach das komplette Template `service_unavailable.html.twig` mit deinem eigenen HTML und CSS überschreiben. Damit das ganze updatesicher ist, musst du die Datei in den Ordner `/templates/bundles/ContaoCoreBundle/Error/` speichern. +{{< version-tag "5.5" >}} muss das Template nach `/templates/error/` kopiert werden. + Zum Schluss muss auch hier der Produktions-Cache erneuert werden. diff --git a/docs/manual/guides/maintenance-template.en.md b/docs/manual/guides/maintenance-template.en.md index 402f39098..6062ce6fa 100644 --- a/docs/manual/guides/maintenance-template.en.md +++ b/docs/manual/guides/maintenance-template.en.md @@ -89,7 +89,9 @@ When the complete Contao installation is put into maintenance mode via the comma In this example we do this for all error templates. For an update-safe adaptation we copy the original template `vendor/contao/core-bundle/src/Resources/views/Error/layout.html.twig` to `/templates/bundles/ContaoCoreBundle/Error/`. -{{< version-tag "5.1" >}} the original template is located at `vendor/contao/core-bundle/templates/Error/layout.html.twig` +{{< version-tag "5.1" >}} the original template is located at `vendor/contao/core-bundle/templates/Error/layout.html.twig`. + +{{< version-tag "5.5" >}}, the template must be copied to `/templates/error/`. There we put our own logo inside the DIV with the class `header-logo`. You can use a normal image tag for this or an inline SVG like in the original template. @@ -123,4 +125,6 @@ For more information about customizing Twig templates, please refer to the [Twig Instead of just changing some texts, you can simply overwrite the whole template `service_unavailable.html.twig` with your own HTML and CSS. To make the whole thing update-safe, you have to save the file in the folder `/templates/bundles/ContaoCoreBundle/Error/`. +{{< version-tag "5.5" >}}, the template must be copied to `/templates/error/`. + Finally you have to refresh the production cache.