Bug #8455

"Wrong" default package used in ResourceInterceptor

Added by Karsten Dambekalns over 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Should have
Category:
Resource
Start date:
2010-06-23
Due date:
% Done:

100%

Estimated time:
1.00 h
PHP Version:
Has patch:
Complexity:

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.

#1

Updated by Karsten Dambekalns over 11 years ago

  • Estimated time changed from 2.00 h to 1.00 h

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 over 11 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r4663.

Also available in: Atom PDF