Project

General

Profile

Actions

Bug #22014

closed

Change default emptyTitleHandling to "removeAttr"

Added by Robert Heel almost 15 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2010-01-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

emptyTitleHandling default in css_styled_content has changed from "useAlt" to "removeAttr". This default should change in cms (class.tslib_content.php), too.

If this is kept because of backward compatibility, a global config option would be nice.

(issue imported from #M13338)


Files

emptyTitleHandling.diff (668 Bytes) emptyTitleHandling.diff Administrator Admin, 2010-01-25 11:07
22014_emptyTitleHandling.diff (700 Bytes) 22014_emptyTitleHandling.diff 4.5 Robert Heel, 2011-09-19 17:07
Actions #1

Updated by Robert Heel about 13 years ago

Actions #2

Updated by Alexander Opitz almost 10 years ago

  • Description updated (diff)
  • Status changed from New to Needs Feedback
  • TYPO3 Version set to 4.5
  • Is Regression set to No

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.2.7)?

Actions #3

Updated by Riccardo De Contardi over 9 years ago

Seems still open; The file typo3/sysext/cms/tslib/class.tslib_content.php does not exist in TYPO3 6.2.11; The file /typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php

contains the lines:

        $altParam = ' alt="' . htmlspecialchars($altText) . '"';
        // "title":
        $emptyTitleHandling = 'useAlt';
        $emptyTitleHandling = isset($conf['emptyTitleHandling.']) ? $this->stdWrap($conf['emptyTitleHandling'], $conf['emptyTitleHandling.']) : $conf['emptyTitleHandling'];
        // Choices: 'keepEmpty' | 'useAlt' | 'removeAttr'
        if ($titleText || $emptyTitleHandling == 'keepEmpty') {
            $altParam .= ' title="' . htmlspecialchars($titleText) . '"';
        } elseif (!$titleText && $emptyTitleHandling == 'useAlt') {
            $altParam .= ' title="' . htmlspecialchars($altText) . '"';
        }
Actions #4

Updated by Alexander Opitz over 9 years ago

  • Category set to Frontend
  • Status changed from Needs Feedback to New
Actions #5

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from New to Needs Feedback

AFAICS on both TYPO3 v. 7.6 and 8 the $emptyTitleHandling = 'useAlt'; has been removed, so it should no more be set as default.

Do you think that it is sufficient to close the issue? Thank you!

Actions #6

Updated by Riccardo De Contardi over 7 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again or have more information about how to reproduce it, then please reopen it or open a new ticket and add a relation to this ticket number.

Thank you!

Actions

Also available in: Atom PDF