IBX-12664: Added siteaccess-aware headless mode configuration - #2109
Conversation
1c74e41 to
1a0fa0a
Compare
|
I see you use that in other packages - then I would say it should be an internal contract (mark as |
|
Why isn't this config part of Page Builder or Page Fieldtype package? |
I think admin-ui is the right place because this is not only for Page Builder. The same front-end URL will also be used for content previews, and the Headless edition doesn’t have Page packages. Admin-ui is the common place where everyone can access it. |
There was a problem hiding this comment.
+1 once #2109 (comment) is done. Reasoning: #2109 (comment).
e69dbb1 to
bfdd4ae
Compare
|



Related PRs:
Description:
Adds one shared, siteaccess-aware configuration for headless mode (the site is rendered by an external front-end app). Until now it lived in page-builder as
page_builder.headless.*, but content preview, content view and content tree will need the same settings, so it moves here.Headlesswith defaultsenabled: falseand all URLsnull.HeadlessConfigurationInterface(isEnabled(),getPageBuilderPreviewUrl(),getContentPreviewUrl(),getConfigurationUrl()), implemented byHeadlessConfigurationon top of the config resolver.isEnabled()is just the flag, consumers also check the URL they need.For QA:
bin/console debug:container --parameter=ibexa.site_access.config.admin_group.headless.enabledshowstrue,...headless.page_builder.preview_urlshows the URL.ibexa.system.admin.headless.enabled: false. Theadminsiteaccess resolvesenabled = falsebut still inheritspage_builder.preview_urlfrom the group.Documentation:
New siteaccess configuration node
headless(keys above). It replaces the unreleasedpage_builder.headless.enabled/base_urlfrom page-builder#550.