You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of layouts should be consistent when creating or migrating a prototype so that they are consistent with the documentation for version 13.
Version 12 and before had app/views/layout.html (and app/views/layout-unbranded.html)
Version 13 has app/views/layouts/main.html
The idea being we can rely on layouts being in the layouts folder, and possibly offer the user a choice of layouts when creating pages from templates.
Layouts help the user make changes that affect multiple pages, for example a custom header, footer, scripts and so on.
In migration, if the old layout.html has changed at all, we do not provide a new layouts/main.html. This means new pages made from templates will not work or even viewed. This is not highlighted to the user as a migration fail.
We could:
fix the migration script to process layouts better, and warn about this issue
add a check to the kit that helps users who have already migrated to fix it via the Manage Prototype UI
ruthhammond
changed the title
Use of layouts do not match documentation for v13 when a prototype is migrated.
Discuss use of layouts not matching documentation for v13 when a prototype is migrated
Apr 11, 2023
joelanman
changed the title
Discuss use of layouts not matching documentation for v13 when a prototype is migrated
Layouts don't always work when a prototype is migrated
Apr 12, 2023
investigated again, the fallback does seem to work. There is definitely a bug in migration though - it should error if layout.html has been edited. Currently it does not, and it deletes the includes that layout.html relies on.
What
The use of layouts should be consistent when creating or migrating a prototype so that they are consistent with the documentation for version 13.
Version 12 and before had
app/views/layout.html
(andapp/views/layout-unbranded.html
)Version 13 has
app/views/layouts/main.html
The idea being we can rely on layouts being in the layouts folder, and possibly offer the user a choice of layouts when creating pages from templates.
Layouts help the user make changes that affect multiple pages, for example a custom header, footer, scripts and so on.
In migration, if the old layout.html has changed at all, we do not provide a new layouts/main.html. This means new pages made from templates will not work or even viewed. This is not highlighted to the user as a migration fail.
We could:
Who needs to work on this
Who needs to review this
Done when
The text was updated successfully, but these errors were encountered: