[FEATURE] Add a automated "bootstrap" pagetree setup#1979
Open
csidirop wants to merge 2 commits into
Open
Conversation
Signed-off-by: Christos Sidiropoulos <dev@csidirop.de>
| This installation already includes a working viewer page and a prepared configuration folder. | ||
| </p> | ||
|
|
||
| <form class="tx-dlf-default-viewer-input-form" action="{f:uri.page(pageUid: viewerPid)}" method="get" onsubmit="var input=this.querySelector('input[name='tx_dlf[id]']'); if(input){ input.value=input.value.trim(); }"> |
This was referenced May 15, 2026
Contributor
Author
|
I will take a look into those codacy issues on monday |
0242892 to
242f81a
Compare
Signed-off-by: Christos Sidiropoulos <dev@csidirop.de>
242f81a to
3d99b6d
Compare
Contributor
Author
|
Checked and fixed some issues. But I think Codacy is wrong about the escaping of the exception output. Unit and PHPStan should be fine, don't know why they all failing now. Looks more like an github issue right now. |
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.
This PR adds a automated root page tree setup via the new tenant module or CLI.
The bootstrap pagetree looks like one the DFG-Viewer sets up, with a root page, a viewer page, and a configuration folder. It also creates a site configuration and root TypoScript template with the required sets and constants to render the Basic Viewer.
It introduces the logic needed to create a new root page, site configuration, viewer page, configuration folder, and root TypoScript template for the standalone Basic Viewer. It can be setup via new UI element in the new tenant module or a CLI command.
This PR builds on top of the Basic Viewer PR.
Changes
BootstrapRootSetupServiceto create the page tree and site configurationResources/Private/Data/BootstrapSiteConfig.yamlBasic ConfigurationInstall Basic Viewerplugin.tx_dlf.persistence.storagePidplugin.tx_dlf.basicViewer.rootPidplugin.tx_dlf.basicViewer.viewerPidkitodo:setupwith default values or--identifier=<CUSTOM_IDENTIFIER>--base=/<CUSTOM_BASE>/--root-title="<CUSTOM_ROOT_TITLE>"\--root-slug=/<CUSTOM_ROOT_SLUG>/\--viewer-slug=/<CUSTOM_VIEWER_SLUG>/\