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

Hotfix/cms template div wrapper #467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

readeral
Copy link

@readeral readeral commented Nov 30, 2018

Ok so this is my second crack, after #456 didn't meet requirements.

What I propose is a second include on every cms template of 'wrapper' which includes the single line <div class="col-12 col-md-9">.
This solves the DRY problem requiring an update of the wrapping div on multiple pages, but also decouples the templates from a dependency on 'sidebar' for their wrapping div.

It doesn't feel all that elegant however - a better solution as noted in #456 would be to have a layout template that itself imports the cms templates within a wrapping div.

This may cause breaking changes for anyone who has created an additional template (templates\cms\example.template.html) which imports the current sidebar.template.html

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.

2 participants