Project

General

Profile

Actions

Bug #15268

closed

Display nav_title in navigation tree

Added by David Worms over 18 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2005-12-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.9-dev
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Feature #16477: Navigation title in tree viewClosedThomas Hempel2006-08-18

Actions
Actions #1

Updated by Martin Kutschker over 18 years ago

I'd appreciate if the full title were used as tooltip by setting the title attribute of the link.

Actions #2

Updated by David Worms over 18 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)

Actions #3

Updated by Benni Mack almost 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.

Actions #4

Updated by Francois Suter almost 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.

Actions #5

Updated by Christian Kuhn over 15 years ago

Resolved as duplicate of #16477.

Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF