Repository navigation
fix: open blog pages in the blog editor from every entry point - #90
Merged
7underlines merged 2 commits intoOct 7, 2026
Merged
7underlines merged 2 commits into
7underlines merged 2 commits into
Conversation
erwinwalterddf
force-pushed
the
fix/open-blog-pages-in-blog-editor
branch
from
September 24, 2026 13:18
3e8a64a to
7eb4982
Compare
Contributor
Author
|
Update: the wizard override is not needed, the page type can be registered with |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #89
Two changes:
sw-cms-detailoverride (new,extension/sw-cms/page/sw-cms-detail/index.js): before loading, look up thewerkl_blog_entrythat references the page and redirect toblog.module.detail. Orphanedblog_detailpages and regular layouts keep opening in the core editor; a failing lookup falls through to the core editor as well.sw-cms-createextendssw-cms-detailand has no route id, so it is not affected.init/cms-page-type.init.js: register theblog_detailpage type withhideInList: true. In the 6.7 administrationgetVisibleTypes()is only used by the layout wizard, so the type disappears from "Create layout" while the "Blog page" filter in the layout list (getTypes()) stays as it is. This replaces the wizard override first proposed in Open blog pages in the blog editor from every entry point and hide the blog page type from the layout wizard #89 with the core mechanism meant for it.Details and reasoning in #89.
Tested
Shopware 6.7.10.2, OpenBlogware 5.3.0, patch applied to the installed package and the administration rebuilt:
#/sw/cms/detail/<pageId>of a blog entry → redirected to#/blog/module/detail/<entryId>.blog_detailpage without linked blog entry and a regular shop page → stay in the core editor.