Ziel: von einem bestimmten Rechner aus sollen download-Links nicht ausführbar sein
Vorgehen: über jquery wird das href-Attribut manipuliert
1.) sfjquery installieren
2.) folgenden Code als Inhaltselement sfjquery auf eine versteckte Seite:
$(“a.download”).attr(“href”,”javascript:alert(‘deaktiviert’);”);
3.) im TYPOSCRIPT eine IP-Condition
[IP = hier IP eintragen]
temp.nodownload = RECORDS
temp.nodownload.tables = tt_content
temp.nodownload.source = 973
[ELSE]
temp.nodownload >
[GLOBAL]
und entsprechend einbinden:
subparts.nodownload < temp.nodownload
Damit werden alle LInks mit der Klasse “download” durch einen javascript-Alert ersetzt.