[TYPO3-german] keine Anker in 4.0?

Daniel Gercke gercke at hnm.de
Wed Jan 11 17:08:13 CET 2006


Man muss sie auch nicht disablen.
Ein bischen php und ein bischen TS tun es auch:

TS
---snip---

# all content element anchors get a prefix for the name and id attribute
tt_content.stdWrap.dataWrap = <a name="content{field:uid}" 
id="content{field:uid}"></a>|
# the section menu is adapted
tt_content.menu.20.3.renderObj.typolink.section.wrap = content|
# reference to a php function
includeLibs.xhtmlanchor = fileadmin/template/user_typolink.inc
tt_content.text.20.parseFunc.tags.link.typolink.parameter.postUserFunc = 
user_xhtmlAnchor

---snap---

user_typolink.inc

---snip---

<?php
function user_xhtmlAnchor($content,$conf) {
   $uriparts = explode('#',$content);
   if (isset($uriparts['1'])) {
     $content = $uriparts['0'].'#content'.$uriparts['1'];
   }
   return $content;
}
?>

---snap---


 >Mike Ritter schrieb:
...
 > Anker werden in XHTML durch IDs nicht durch name gekennzeichnet.

Ist so nicht ganz korrekt. Anker werden in XHTML am besten mit id & name 
gekennzeichnet.
Siehe hier: http://www.w3.org/TR/xhtml1/#C_8

Daniel Gercke

programmierung . system managements

--
haus neuer medien GmbH . agentur fuer neuen antrieb
.
Tel 03834 8313 0 . Fax 8313 13 . info at hnm.de . www.hnm.de
Wolgaster Strasse 146  (Ollmannsche Villa) . 17489 Greifswald
.
Tel 040 2384 4630 . Fax 4154 6520 . Osterstrasse 124 . 20255 Hamburg
.
AG Stralsund HRB 5089 . Geschaeftsfuehrer RA Daniel Scheibner
.
-- 
[Diese Nachricht gilt als frei von Viren und gefaehrlichen Dateianhaengen.
Schutz vor Viren und Spam von haus neuer medien. Bei Fragen oder Interesse Kontakt ueber mailscanner at hnm.de oder 03834 83130.]




More information about the TYPO3-german mailing list