Bug #8455
"Wrong" default package used in ResourceInterceptor
Status: | Resolved | Start date: | 2010-06-23 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Karsten Dambekalns | % Done: | 100% |
|
Category: | Resource | |||
Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 10 | Estimated time: | 1.00 hour | |
PHP Version: | Complexity: | |||
Has patch: | Affected Flow version: |
Description
When using a resource link in a Fluid template FLOW3's ResourceInterceptor transforms that into a Resource ViewHelper setup. If it doesn't detect a package key in the used URL the current package is used as default.
This doesn't work in TYPO3, as the current package is TYPO3, whereas the template file comes from the site's package. The intuitive behavior would be if the package the template is in was used as default.
Related issues
History
#1 Updated by Karsten Dambekalns about 5 years ago
- Estimated time changed from 2.00 to 1.00
This should be solved in consumer code - as the Fluid parser receives a simple string with the template to parse, the interceptor needs to be configured before this step. Thus a default package to use should be added to the ResourceInterceptor and (in this case) TYPO3 should configure it as needed.
#2 Updated by Karsten Dambekalns about 5 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r4663.