Project

General

Profile

Actions

Feature #19832

open

sectionMarker (page anchor) prefix is hardcoded as "c"

Added by Michiel Roos almost 16 years ago. Updated over 4 years ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2009-01-15
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
hard
Sprint Focus:

Description

sectionMarker (page anchor) prefix is hardcoded as "c" while it is freely configurable in css styled content.

You can change the page anchor from the default:
tt_content.stdWrap.dataWrap = <a id="c{field:uid}"></a> |

To something like:
tt_content.stdWrap.innerWrap.cObject.default.10.value = <div id="section-{field:uid}">|</div>

Or
tt_content.stdWrap.innerWrap.cObject.default.10.value = <div id="content-element-{field:uid}">|</div>

Although it is longer, it's more descriptive.

The point is that is is changeable by the user. But the anchor prefix is hardcoded in the core as being "c".

This is in the following files:
sysext/cms/tslib/class.tslib_content.php (line 5268 and line 5390)
sysext/simulatestatic/class.tx_simulatestatic.php (line 166)

(issue imported from #M10147)


Files

bug-10147.diff (2.9 KB) bug-10147.diff Administrator Admin, 2011-03-17 16:25

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #73621: Make anchors editableClosed2016-02-23

Actions
Actions

Also available in: Atom PDF