Project

General

Profile

Actions

Bug #36308

closed

CardLayout, path of css file is wrongly calculated

Added by Kay Strobach about 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2012-04-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

end of backend.php:

        if (is_array($moduleConfig['cssFiles'])) {
            foreach ($moduleConfig['cssFiles'] as $cssFileName => $cssFile) {
                $TYPO3backend->addCssFile($name, t3lib_div::getFileAbsFileName($cssFile));
            }
        }

should be

        if (is_array($moduleConfig['cssFiles'])) {
            foreach ($moduleConfig['cssFiles'] as $cssFileName => $cssFile) {
                $files = array(t3lib_div::getFileAbsFileName($cssFile));
                $files = t3lib_div::removePrefixPathFromList($files, PATH_site);
                $TYPO3backend->addCssFile($name, t3lib_div::getFileAbsFileName($files[0]));
            }
        }

Otherwise the code tries to load the local file :(

related to 4.7 and master!

Funny, can't assign the issue to me :(


Files

dashboard.zip (6.99 KB) dashboard.zip test extension as requested by tolleiv Kay Strobach, 2012-04-22 15:05

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #38158: Move global code from typo3/backend.php to classClosedMathias Schreiber2012-06-18

Actions
Actions #1

Updated by Steffen Ritter about 12 years ago

  • Target version deleted (4.7.0)
Actions #2

Updated by Steffen Ritter about 12 years ago

  • Target version set to 4.7.1
Actions #3

Updated by Gerrit Code Review about 12 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10689

Actions #4

Updated by Kay Strobach about 12 years ago

see for more details
http://wiki.typo3.org/Extension_Development,_native_ExtJS_Modules

use attachment for testing (early alpha extension, not for production usage!)

Actions #5

Updated by Tolleiv Nietsch about 12 years ago

Well thanks for the input ... I can't really see what's wrong. Would you mind to add a description?

Actions #6

Updated by Kay Strobach about 12 years ago

The dashboard extension adds some html like

<link rel="stylesheet" type="text/css" href="D:/www/t3-trunk/typo3conf/ext/dashboard/Resources/Public/Stylesheet/dashboard.css" media="all">

To the output of the backend.php

while the output should be

<link rel="stylesheet" type="text/css" href="../typo3conf/ext/dashboard/Resources/Public/Stylesheet/dashboard.css" media="all">

The file is configured in the ext_tables.php

    t3lib_extMgm::addExtJSModule(
        $_EXTKEY,
        'user',
        'dashboard',
        '',
        array(        //additional config
            'access' => 'user,group',
            //'icon'   => 'EXT:sitemgr/Resources/Public/Images/Backend/mod1/moduleicon.gif',
            'labels' => 'dada LLL:EXT:dashboard/Ressources/Private/Language/dashboard.xml:modTitle',
            'jsFiles' => array(
                'EXT:dashboard/Resources/Public/JavaScript/dashboard.js',
                'EXT:dashboard/Resources/Public/JavaScript/ux/Ext.ux.widgetPortal.js',
                'EXT:dashboard/Resources/Public/JavaScript/ux/Ext.ux.widgetPortalColumn.js',
                'EXT:dashboard/Resources/Public/JavaScript/ux/Ext.ux.widgetPortalWidget.js',
            ),
            'cssFiles' => array(
                'EXT:dashboard/Resources/Public/Stylesheet/dashboard.css'
            )
        )
    );

See in the above snippet

            'cssFiles' => array(
                'EXT:dashboard/Resources/Public/Stylesheet/dashboard.css'
            )

Regards
Kay

Actions #7

Updated by Gerrit Code Review about 12 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10689

Actions #8

Updated by Gerrit Code Review about 12 years ago

Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/12175

Actions #9

Updated by Kay Strobach about 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #10

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF