Bug #16843
closedH/TMENU crop is hardcoded in tslib_menu.php
0%
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)
Updated by Oliver Hader almost 18 years ago
Could you please post an example typoscript where your new configuration-key "maxLinkDescrChars" (or whatever) is used.
Updated by Christian Schnetter almost 18 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.....
Updated by Oliver Hader almost 18 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.
Updated by Christian Schnetter almost 18 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.
=)