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

fix(preview): Fix preview template to take theme template into account #75

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

welcoMattic
Copy link
Contributor

The preview feature doesn't pay attention to theme template until now. This PR change the base template of the preview template to extend the @MonsieurBizSyliusCmsPagePlugin/Shop/Page/show.html.twig file which can be overrided by a theme. As before, we still inject the red banner to warn the user that the current page is displayed in the preview mode.

Before, with a custom theme enabled

image

After, with a custom theme enabled

image

@maximehuran maximehuran self-requested a review October 2, 2024 11:39
@lanfisis lanfisis removed their request for review October 2, 2024 12:18
@maximehuran maximehuran merged commit e5123db into master Oct 2, 2024
12 checks passed
@maximehuran maximehuran deleted the fix/preview-template branch October 2, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: needs review Status: needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants