Bug #15268
closedDisplay nav_title in navigation tree
0%
Description
This issue applied to all versions of Typo3. To summurize the problem: When creating a new page of type "Advanced", we are proposed to create a title and a nav_title. This is great for search engine optimisation, and we often end up with large title which are not comprehensible when displayed in the navigation tree of the backend. The correct behavior would be to display the nav_title by default, and if not defined, the title. This is fixed in t3lib_treeview by replacing 2 lines:
line 173:
var $fieldArray = Array('uid','nav_title','title');
line 675:
$title = (strcmp(trim($row['nav_title']),'')) ? htmlspecialchars(t3lib_div::fixed_lgd_cs($row['nav_title'],$titleLen)) : ( (strcmp(trim($row['title']),'')) ? htmlspecialchars(t3lib_div::fixed_lgd_cs($row['title'],$titleLen)) : '<em>['.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.no_title',1).']</em>' );
(issue imported from #M2017)
Updated by Martin Kutschker almost 19 years ago
I'd appreciate if the full title were used as tooltip by setting the title attribute of the link.
Updated by David Worms almost 19 years ago
This could be achieve in typo3/alt_db_navframe.php by updating line 159:
return '<a href="#" onclick="'.htmlspecialchars($aOnClick).'"'.$CSM.' title="'.htmlspecialchars($row['title']).'">'.$title.'</a>';
(The line above don't seem to be displayed correctly but when I edit the note, I see it right. If you can't read it, contact me and I'll send it by email)
Updated by Benni Mack over 16 years ago
Hey,
there is a fix to show the nav_title with a userTSconfig option (I think since 4.1). However, I don't think we should set this as a default option.
@David: Please recheck and see if this userTSconfig option works for you. If so, let's resolve this issue.
Updated by Francois Suter over 16 years ago
It is indeed a User TSConfig option:
options.pageTree.showNavTitle = 1
but it exists only since 4.2.
It was implemented in RFC 4064 so we should add a relation to that one. And hope we can close this one.