[TYPO3-core] RFC: Bug 6138: Recursive include of external Typoscript Files
Andreas Otto
andreas.otto at dkd.de
Tue Oct 16 15:10:03 CEST 2007
Hello Michael,
Michael Stucki wrote:
> Thanks, I committed this change now including your enhancement!
We have just found out that this change does not work correctly.
Imagine you have a TS template that contains:
# The page object
page = PAGE
page {
typeNum = 0
10 = COA
10 {
<INCLUDE_TYPOSCRIPT: source="FILE: typo3conf/test-ts-include.txt">
30 = USER
30 {
userFunc = tx_templavoila_pi1->main_page
}
40 = COA
40 {
<INCLUDE_TYPOSCRIPT: source="FILE: typo3conf/test-ts-include.txt">
}
}
}
This will currently be parsed to:
# The page object
page = PAGE
page {
typeNum = 0
10 = COA
10 {
### <INCLUDE_TYPOSCRIPT: source="FILE: typo3conf/test-ts-include.txt"> BEGIN:
10 = TEXT
10.value = Hallo TYPO3.
### <INCLUDE_TYPOSCRIPT: source="FILE: typo3conf/test-ts-include.txt"> END:
30 = USER
30 {
userFunc = tx_templavoila_pi1->main_page
}
40 = COA
40 {
### <INCLUDE_TYPOSCRIPT: source="FILE: typo3conf/test-ts-include.txt"> BEGIN:
### <INCLUDE_TYPOSCRIPT: source="FILE: typo3conf/test-ts-include.txt"> END:
}
}
}
So at page.10.40 we have the issue that the TS from the external file is not included anymore.
With the attached patch applied the TS will be parsed as expected, but the original issue of the bug report is still not solved.
# The page object
page = PAGE
page {
typeNum = 0
10 = COA
10 {
### <INCLUDE_TYPOSCRIPT: source="FILE: typo3conf/test-ts-include.txt"> BEGIN:
10 = TEXT
10.value = Hallo TYPO3.
### <INCLUDE_TYPOSCRIPT: source="FILE: typo3conf/test-ts-include.txt"> END:
30 = USER
30 {
userFunc = tx_templavoila_pi1->main_page
}
40 = COA
40 {
### <INCLUDE_TYPOSCRIPT: source="FILE: typo3conf/test-ts-include.txt"> BEGIN:
10 = TEXT
10.value = Hallo TYPO3.
### <INCLUDE_TYPOSCRIPT: source="FILE: typo3conf/test-ts-include.txt"> END:
}
}
}
Any ideas how to proceed from here?
Cheers,
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_6138_v3.diff
Type: text/x-diff
Size: 2018 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071016/800ec630/attachment.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test-ts-include.txt
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071016/800ec630/attachment.txt
More information about the TYPO3-team-core
mailing list