Manchmal möchte man gerne anstatt der zur Verfügung stehenden Linkmöglichkeiten des Wizards in RTE direkt eine Javascript Funktion aufrufen.
Wechselt man z.B. im Textelement im RTE in die HTML Ansicht, kann unten stehendes Markup einkopiert werden. Mit den zusätzlichen Attributen lässt der RTE das href Attribut in Ruhe und lässt dieses so wie es ist.
|
<a href="javascript:mySuperFunc()" data-htmlarea-external="1" rtekeep="1">JS href link in RTE</a> |
Ist zwar Abartig, aber es geht ^^ Hier ein paar Beispiele.
|
tt_content.stdWrap.innerWrap.cObject.default.if { equals.field = CType value = fluidcontent_content negate = 1 } |
|
tt_content.stdWrap.innerWrap.cObject.default.if { equals.field = CType value = gridelements_pi1 negate = 1 } |
|
# unnötigen csc-default wrap um Inhaltselement Verweis entfernen tt_content.stdWrap.innerWrap.cObject.default.if { equals.field = CType value = shortcut negate = 1 } |
|
[globalString = IENV:TYPO3_SSL=1] config.baseURL = https://www.foo-domain.de/ [else] config.baseURL = http://www.foo-domain.de/ [global] |
So, es wird nun langsam Zeit die Kategorien mit Inhalten zu füllen ;o) Und Typoscript macht den Anfang mit einer dynamischen Jahreszahl.
|
lib.copyright = TEXT lib.copyright { dataWrap = © {date:Y} Irgendeinefirma GmbH } |
|
plugin.tx_exampleext_pi1 { templateFile = fileadmin/templates/footemplate.html subPart = ###TEASERSEARCH### } 10 < plugin.tx_exampleext_pi1 oder lib.foo < plugin.tx_exampleext_pi1 |
|
config.xmlprologue = none config.disableAllHeaderCode = 1 page = PAGE page.typeNum = 0 page.10 < plugin.tx_the_ext_that_generates_the_xml_pi1 |
|
lib.breadcrumb = HMENU lib.breadcrumb { special = rootline special.range = 1|-1 1 = TMENU 1 { NO.linkWrap = | > NO.stdWrap2.noTrimWrap = | | | CUR < .NO CUR = 1 CUR { linkWrap = | doNotLinkIt = 1 } } } |
Web, Coding, Mac, Snippets, a Blog and more…