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

Default view configuration in FluxService prevents using multiple separated template collections with static TS includes #839

Closed
georg-tiefenbrunn opened this issue May 22, 2015 · 3 comments

Comments

@georg-tiefenbrunn
Copy link

As written in the templating manual using static TypoScript is ideal for multi-domain sites using multiple template collections. But FluxService::getViewConfigurationForExtensionName() always returns at least the default template paths for a provider extension and thus every page template (page layout) is available on every page in page tree whether or not the static TypoScript of a provider extension is included or not.

@georg-tiefenbrunn
Copy link
Author

As a workaround you can use always-included false defaults and set the paths to an extension which doesn't provide templates for fluidcontent/fluidpages like flux:

// ext_localconf.php
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '
    plugin.tx_myprovider.view {
        templateRootPaths.10 = EXT:flux/Resources/Private/Templates/
        partialRootPaths.10 = EXT:flux/Resources/Private/Partials/
        layoutRootPaths.10 = EXT:flux/Resources/Private/Layouts/
    }
');

To overwrite the default values generated in FluxService->getDefaultViewConfigurationForExtensionKey() you have to use the same index .10 both in myprovider/ext_localconf.php and in your static TS (myprovider/Configuration/TypoScript/setup.txt).

@NamelessCoder
Copy link
Member

Merged a while back - thanks Georg!

@blueamerican
Copy link

i tested georgs workaround above but it does't really work for me.

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

No branches or pull requests

3 participants