Vieles im Leben ist gewachsen, nicht geplant!
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.
| M | D | M | D | F | S | S |
|---|---|---|---|---|---|---|
| « Mrz | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 | |||