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

[TASK] Add option to include TypoScript from custom path #47

Closed
wants to merge 1 commit into from

Conversation

ochorocho
Copy link

Currently, it is not possible to use a custom template path. This can be useful if you have plenty of sites which do not use a dedicated extension for each site.

This change adds the site setting "typoScriptTemplatePath" which allows to define a custom path for the TypoScript templates to be included.

Currently, it is not possible to use a custom template path.
This can be useful if you have plenty of sites which do not use
a dedicated extension for each site.

This change adds the site setting "typoScriptTemplatePath" which
allows to define a custom path for the TypoScript templates
to be included.

$GLOBALS['SiteConfiguration']['site']['columns']['typoScriptTemplatePath'] = [
'label' => 'Custom path to the TypoScript template',
'description' => '[EXT:bolt] Defined a custom path to the TypoScript template to be included instead of the default "Configuration/TypoScript/".',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[EXT:bolt] Path to the TypoScript and TsConfig entry points inside the site package (defaults to "Configuration/TypoScript/")

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, will have to look into this, because i did not modify the TsConfig/Loader.php.
IMO, this should be done as well.

Copy link
Member

@bmack bmack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend adding this functionality via an Event or such, seems a bit "special" and edge-casy... Also I assume EXT:bolt will be obsolete with TYPO3 v13 anyways (thanks to Site Sets).

@bmack bmack mentioned this pull request Jun 17, 2024
@bmack bmack closed this Oct 7, 2024
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.

3 participants