YouTube Folge 6 - Updates am 10.3.2010
in dieser Folge zeige ich einige Änderungen, die in der aktualisierten Version gemacht wurden, und wie die Skiplinks mit TypoScript gelöst wurden.
Hier der Code zu den Skiplinks:
Extension Template +ext ul skiplinks:
# ############################################
# elements inside <ul id="skiplinks">
# YAML 3.2
# ############################################
temp.skiplinks = COA
temp.skiplinks {
# zur Navigation
20 = TEXT
20 {
wrap = <li>|</li>
value = direkt zur Navigation springen (Enter drücken)
typolink {
parameter = #nav
ATagParams = class="skip"
title = zur Navigation
}
}
# zum Inhalt
40 = TEXT
40 {
wrap = <li>|</li>
value = direkt zum Inhalt springen (Enter drücken)
typolink {
parameter = #col2
ATagParams = class="skip"
title = zum Inhalt
}
}
}
[globalVar = GP:L = 1]
temp.skiplinks.20.value = Skip to navigation (Press Enter).
temp.skiplinks.20.typolink.title = to navigation
temp.skiplinks.40.value = Skip to main content (Press Enter).
temp.skiplinks.40.typolink.title = to content
[global]
Im Haupttemplate auf der root Seite im Reiter "Includes" -> "Include basis template" das Extension Template +ext ul skiplinks zu Liste hinzufügen.
Im Setup die beiden gelb markierten Zeilen einfügen
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
template.content.templateType = main
workOnSubpart = DOCUMENT_BODY
subparts.header < temp.header
subparts.skiplinks < temp.skiplinks
...
...
# ###################################
# ### Auto-Parser konfigurieren
# ### Template-File lesen:
plugin.tx_automaketemplate_pi1 {
content < plugin.tx_rlmptmplselector_pi1
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
DIV.all = 1
UL.all = 1
}
...
Speichern, Caches löschen, fertig.
