"No template found" error after adding extension template
When a new extension template is added to the same page where main site template is located, it is placed to the topmost sorting position. After that this site shows "No template found" in FE. Moving extension template one position down solves the problem. It appears that TYPO3 assumes that the very first template will be the root TS template, which is wrong.
Suggested solution (make all of them!):
- proper search for root template
- send new TS templates to the end of the list
(issue imported from #M10006)
Updated by Steffen Gebert over 13 years ago
Thanks for your patch, Michel!
Can you post it to the core team mailinglist to get this into the TYPO3 sources?
Updated by Markus Bucher over 13 years ago
Patch is not working in every case. When you have two extension templates the latter one is always being ignored.
You can test it yourself by providing an extension template with simply
inside. If this template isn't the very first one it is ignored and doesn't have an effect whilst it breaks the page when it is.
Tested in 4.3 and 4.4.
Patch not working as it doesn't fix this problem.
Updated by Michel Tremblay over 13 years ago
The patch only assures that the "root" template will be loaded if present. This does not change the fact that TYPO3 only uses one template per page. This seems to be the normal behavior (maybe not good). Changing this behavior could probably cause problems on some existing sites.
Am I right?
Updated by Francois Suter about 13 years ago
Markus, the behavior you described is a long-standing one: indeed, TYPO3 considers only the first template (extension or root) on a given page. I agree that it is confusing given that it's possible to define as many template records as you want. Still this is not related to this bug IMO, which is about making the root templates take precedence over the extension templates. In this regards the patch works for me.
A possible solution to the multiple template problem could be to show those extra template in the Template Analyzer and indicated that they are being ignored. But this would be a separate issue anyway.
Updated by Alexander Opitz over 9 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this ticket.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.