Bug #71486

Empty Compressed CSS file in iframe with external file in f:be.container

Added by Manuel Kammermann about 5 years ago. Updated 8 months ago.

Status:
Closed
Priority:
Must have
Category:
Fluid
Target version:
-
Start date:
2015-11-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
css, backend, module
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

I am not sure why this is not going. But in my TYPO3 6.2 Backend module, I want to include the bootstrap.min.css from maxcdn. After reading through the doc I decided to go with f:be:container and use the includeCssFiles argument to load it as follows:

<f:be.container loadJQuery="true" includeCssFiles="{0: '{f:uri.external(uri:\'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css\')}'}">

I also get a compressed css file in the iframe, but it is empty:

<link media="all" href="../typo3temp/compressor/bootstrap.min-cfc9fc44495c6d385418e5ee4d0ab2cd.css?1447181637" type="text/css" rel="stylesheet">

Related issues

Related to TYPO3 Core - Bug #52597: Compressor: Fetch external files correctlyRejected2013-10-07

Actions
#1

Updated by Mathias Schreiber about 5 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber

Correct.
Compressor cannot work with external resources.

#2

Updated by Helmut Hummel almost 5 years ago

  • Status changed from Needs Feedback to New
  • Complexity set to medium

There are more issues here:

  1. compressor does not properly compress remote resources (why should it, see related ticket)
  2. it is not possible to add external resources without compression or concatenation
  3. the be.container VH is a mess
  4. we lack nice and simple VHs as wrapper for page renderer
  5. we lack reasonable and nice API of page renderer

all fixable, i'd say it is an advanced beginner or intermediate task

#3

Updated by Mathias Schreiber 8 months ago

  • Status changed from New to Closed

We cannot fix this issue.
External resources are external resources. If these need to be compressed, the build-service should take care of downloading the latest version so TYPO3 can work with local resources.

Also available in: Atom PDF