Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/manual/guides/maintenance-template.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.7" >}} muss das Template nach `/templates/error/` kopiert werden.
Comment thread
cmette marked this conversation as resolved.
Outdated

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.

Expand Down Expand Up @@ -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.7" >}} muss das Template nach `/templates/error/` kopiert werden.
Comment thread
cmette marked this conversation as resolved.
Outdated

Zum Schluss muss auch hier der Produktions-Cache erneuert werden.
6 changes: 5 additions & 1 deletion docs/manual/guides/maintenance-template.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.7" >}}, the template must be copied to `/templates/error/`.
Comment thread
cmette marked this conversation as resolved.
Outdated

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.

Expand Down Expand Up @@ -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.7" >}}, the template must be copied to `/templates/error/`.
Comment thread
cmette marked this conversation as resolved.
Outdated

Finally you have to refresh the production cache.