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

Add default values for columns_two block #22

Merged
merged 1 commit into from
Sep 16, 2023
Merged

Conversation

damsfx
Copy link
Contributor

@damsfx damsfx commented Sep 15, 2023

Defines a default value for columns if they are not yet added to the block.
This happens in case the two columns block is added to a page and then the page is saved without adding blocks on columns.

Using the | default filter avoid getting issue if the cms.enableTwigStrictVariables is set to true.

fix #20

Defines a default value for columns if they are not yet added to the block.
This happens in case the two columns block is added to a page and then the page is saved without adding blocks on columns.

Using the `| default` filter avoid getting issue if the `cms.enableTwigStrictVariables` is set to true.
@LukeTowers LukeTowers merged commit f94479a into wintercms:main Sep 16, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Columns for columns_two can't get empty
2 participants