wintercms / wn-blocks-plugin

Block based content management plugin for Winter CMS.
MIT License
21 stars 5 forks source link

Add default values for `columns_two` block #22

Closed damsfx closed 1 year ago

damsfx commented 1 year ago

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