Bug #70044
closed
Typoscript for plugins not being generated when including static templates of fluid_styled_content in external files
Added by Tobias Wollender about 9 years ago.
Updated about 7 years ago.
Description
I'm testing out fluid_styled_content and for this deactivated css_styled_content completely. I don't want to include the static template in the backend, but include it in an external typoscript file of my template. Like this:
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluid_styled_content/Configuration/TypoScript/Static/setup.txt">
I'm also doing this with the constants of fluid_styled_content. I did this already with css_styled_content too before - without problems. When doing this with fluid_styled_content now, I have problems to add plugins on a page. In the backend this is no problem, but in the frontend I get errors like this:
#1253191023: TypoScript object path "tt_content.list.20.indexed_search" does not exist
Now when I add the static template in the backend, the error is gone and everything is fine. I think there is some generated typoscript missing, when including the static templates in an external file.
- Sprint Focus set to Stabilization Sprint
Hey Tobias,
sounds like the problem of inclusion order of TypoScript. I guess you have the same problem with CSS Styled Content?
Hi Benni,
as I wrote in the description, with css_styled_content everything works as expected. I have an own extension for my templates. In the ext_tables.php I add the static templates:
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'My Template Configuration');
So I can add them in the Backend. That's the only static template I want to include there. Every other template should be included in e. g. setup.txt like described above. When doing this with css_styled_content everything is fine. With fluid_styled_content the parts like this are missing:
#############################################
## TypoScript added by extension "indexed_search"
#############################################
When I add it directly in the backend it works. With css_styled_content both ways work. And I just change the path to the templates in this case (and install css_styled_content or fluid_styled_content of course - never both).
Tobi
Hi Anja,
I also added the PageTS through an include in an external file. But there is only one file in fluid_styled_content for PageTS and it is for the NewContentElementWizard. I included it like this:
<INCLUDE_TYPOSCRIPT: source="FILE: EXT:fluid_styled_content/Configuration/PageTSconfig/NewContentElementWizard.ts">
The defined elements in this file show up correctly after adding it. So I think this is ok. PageTS is also only for backend I think. But the problem for me is in the frontend. Didn't find any other TS files to include in fluid_styled_content.
When adding the static templates in the backend, is there some additional magic happening?
Move the lines including your TS from ext_tables.php to ext_localconf.php and try again :-)
Tried to move this line from ext_tables.php to ext_localconf.php ..
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'My Template Configuration');
.. but then I can't even select the static template of my extension. So I think ext_tables.php is the right place for this.
Not the static files but the PageTS stuff - somehting similar happens, when you configure Gridelements with external files and include them in ext_tables.php
So it's just a wild guess but it could be the reason.
Yes, I use "\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig" in ext_localconf.php already. So I think this should be fine. As stated above I don't do anything different than with css_styled_content and there it works as it should. I uninstall css_styled_content, install fluid_styled_content and adjust the include paths for the static templates in my external file. The standard TS is included - as I can see it in the template analyzer - but the dynamic parts are missing.
- Target version changed from 7.5 to 7 LTS
- Sprint Focus deleted (
Stabilization Sprint)
- Category set to Fluid Styled Content
Hy! I just want to say that I experience the same problem.
For me this is even a must-have, since it is the only way to create file-based website configurations for modern deployment. Or am I missing another/better way?
- Priority changed from Should have to Must have
Would be nice to have this "feature" with FSC
- Category changed from Fluid Styled Content to TypoScript
- Status changed from New to Accepted
- Assignee set to Markus Klein
- Target version changed from 7 LTS to 7.6.1
- Complexity set to easy
- Status changed from Accepted to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF