Project

General

Profile

Actions

Bug #16843

closed

H/TMENU crop is hardcoded in tslib_menu.php

Added by Christian Schnetter about 17 years ago. Updated about 17 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2007-01-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.0
PHP Version:
5
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When making anH/TMENU all link descriptions are cropped after 32 chars. This is not understandable and very annoying, because it is hardcoded in tslib/class.tslib_menu.php Line 1441 function writeMenu()

I think it would be better to make this variable (+++) configurable by Typoscript, name it s.th. like: 'maxLinkDescrChars' and everybody would be happy.
=)

// Erdal Demirtas - begin
$linkDesc = $this->menuArr[$key]['title'];
if (strlen($linkDesc) > 32) {
$linkDesc = substr($this->menuArr[$key]['title'], 0, +++ );
}
(issue imported from #M4757)

Actions #1

Updated by Oliver Hader about 17 years ago

Could you please post an example typoscript where your new configuration-key "maxLinkDescrChars" (or whatever) is used.

Actions #2

Updated by Christian Schnetter about 17 years ago

I would modifythe upper seen code like this:

$linkDesc = substr($this->menuArr[$key]['title'], 0, $conf['maxLinkDescrChars'] );

my Prob is, that I am not sure where to define the var ($conf['maxLinkDescrChars']) in Typoscript.....

Actions #3

Updated by Oliver Hader about 17 years ago

Sorry, I couldn't find the code segment you pointed out in class.tslib_menu.php for TYPO3 4.0.4 or TYPO3 4.1-dev. Also I could not find any hardcoded substr to 32 chars.

Actions #4

Updated by Christian Schnetter about 17 years ago

Oh sorry this was a mistake of mine.
The prob was in 3.7.

I could use
NO.stdWrap.crop = 100 | ... | 1
instead

I think we could close this topic.
=)

Actions #5

Updated by Oliver Hader about 17 years ago

As requested, bug-report is closed.

Actions

Also available in: Atom PDF