Skip to content

[FEATURE] Autoload TypoScript setup per content block#445

Open
d-s-codappix wants to merge 1 commit intoFriendsOfTYPO3:1.3from
codappix:autoload-typoscript
Open

[FEATURE] Autoload TypoScript setup per content block#445
d-s-codappix wants to merge 1 commit intoFriendsOfTYPO3:1.3from
codappix:autoload-typoscript

Conversation

@d-s-codappix
Copy link

@d-s-codappix d-s-codappix commented Oct 6, 2025

Relates: #35

Comment on lines +192 to +193
if (file_exists(GeneralUtility::getFileAbsFileName($extPath . '/setup.typoscript'))) {
$importStatement = '@import "' . $extPath . '/setup.typoscript"';
Copy link
Author

Choose a reason for hiding this comment

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

One might want to adjust the path, e.g.:

Suggested change
if (file_exists(GeneralUtility::getFileAbsFileName($extPath . '/setup.typoscript'))) {
$importStatement = '@import "' . $extPath . '/setup.typoscript"';
if (file_exists(GeneralUtility::getFileAbsFileName($extPath . '/typoscript/setup.typoscript'))) {
$importStatement = '@import "' . $extPath . '/typoscript/setup.typoscript"';

Comment on lines 187 to +192
if (!file_exists($absolutePath)) {
continue;
}

$importStatement = '';
if (file_exists(GeneralUtility::getFileAbsFileName($extPath . '/setup.typoscript'))) {
Copy link
Author

Choose a reason for hiding this comment

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

Maybe this has to be checked prior checking whether a template exists, and always apply it.
That way content blocks without a template, e.g. to configure plugins, can also make use of the feature.

@nhovratov nhovratov changed the base branch from main to 1.3 December 18, 2025 17:25
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.

1 participant

Comments