Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Override core view templates #230

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all 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
2 changes: 1 addition & 1 deletion docs/themes/system.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

You can override any view's template in Mautic by creating a ``themes/system`` directory, copying the core template file into a corresponding directory and customizing the HTML.

For example, to customize the login page, copy ``app/bundles/UserBundle/Views/Security/login.html.php`` into ``themes/system/MauticUserBundle/Security/login.html.php`` then make the desired changes.
For example, to customize the login page, copy ``app/bundles/UserBundle/Resources/views/Security/login.html.twig`` into ``themes/system/UserBundle/Resources/views/Security/login.html.twig`` then make the desired changes.

Check warning on line 6 in docs/themes/system.rst

View workflow job for this annotation

GitHub Actions / prose

[vale] reported by reviewdog 🐶 [Mautic.FeatureList] Is this referring to a Mautic feature? If so, use 'Landing Page' instead of 'page'. Raw Output: {"message": "[Mautic.FeatureList] Is this referring to a Mautic feature? If so, use 'Landing Page' instead of 'page'.", "location": {"path": "docs/themes/system.rst", "range": {"start": {"line": 6, "column": 37}}}, "severity": "INFO"}

.. Warning:: Customizations may break Mautic updates core templates in future versions. It's best practice to review and reconcile customizations with core templates after each upgrade.
Loading