Skip to content

Instantly share code, notes, and snippets.

View abteilung's full-sized avatar

Abteilung für Gestaltung GmbH abteilung

View GitHub Profile
@abteilung
abteilung / Favicons.fusion
Last active April 12, 2021 19:23
Render Favicons with Neos CMS
prototype(Abte.Site:Component.Favicon) < prototype(Neos.Fusion:Component) {
thirtytwo = Carbon.Image:ImageUri {
asset = ${ q(site).property('logo') }
width = '32'
height = '32'
maximumWidth = '32'
maximumHeight = '32'
allowCropping = TRUE
}
@abteilung
abteilung / navigations.ts
Created January 28, 2014 17:12
TypoScript breadcrumb navigation
lib.breadCrumb = HMENU
lib.breadCrumb {
special = rootline
# zeige komplette rootline an
special.range = 1|-1
# Variation: Link nur auf die uebergeordnete Seite
#special.range = -2|-2
@abteilung
abteilung / noScrollingMouseWheel.js
Created May 20, 2013 19:12
No Scrolling with MouseWheel. JavaScript
window.onmousewheel = document.onmousewheel = function(e) {
e = e || window.event;
if (e.preventDefault)
e.preventDefault();
e.returnValue = false;
};
@abteilung
abteilung / eyesFollowingMouse
Created May 20, 2013 18:47
Eyes following Mouse Pointer. Augen folgen der Maus
// JS-Code für die Augen
function jseyesmove(e, t, n) {
var r, i, s, o = $("#" + n),
u = $("#" + n + "_pupille"),
a = o.position();
i = e - a.left - 10;
s = t - a.top - 10;
r = i * i / 90 + s * s / 110 < 1 ? 1 : Math.sqrt(9900 / (i * i * 110 + s * s * 90));
u.css("left", r * i + 10 + "px");
u.css("top", r * s + 10 + "px")
@abteilung
abteilung / localconf.php
Created April 25, 2013 15:29
ImageMagick: dunkle Bilder, dark images, colorspace. Korrigieren -> in localconf.php
$TYPO3_CONF_VARS['GFX']['im_stripProfileCommand'] = '+profile \'*\' -colorspace CMYK';
@abteilung
abteilung / chmod_w_o_find.sh
Created April 25, 2013 13:14
chmod -r und chown-r für CYON-Server
#!/bin/bash
#
# @author "cyon GmbH" <mail@cyon.ch>
# @version 0.1
## PATH Setzen nicht vergessen!
Path='/home/[BENUTZERNAME]/[PFAD]/'
function setChmod {
ls -1 $1 | while read file
do
file=${1}/${file}
@abteilung
abteilung / disable_html_comments.ts
Created April 19, 2013 22:55
TYPO3 Kommentare im HTML entfernen
# entfernt die HTML-Kommentare der entsprechenden Objekte ###
page.config.disablePrefixComment = true
@abteilung
abteilung / TYPO3: Mehrere Domains mit RealURL
Created April 7, 2013 15:52
TYPO3: Mehrere Domains mit RealURL
Mehrere Domains mit RealURL
@abteilung
abteilung / TYPO3: Maximale Bildgröße für TemplaVoila-Bereiche
Created April 7, 2013 15:51
TYPO3: Maximale Bildgröße für TemplaVoila-Bereiche
# Maximale Bildgröße für TemplaVoila-Bereiche
5 = LOAD_REGISTER
5.maxImageWidth = 370
10 = RECORDS
10.source.current = 1
10.tables = tt_content
15 = RESTORE_REGISTER
@abteilung
abteilung / TYPO3: Von Admin angelegter Content einer Gruppe zuweisen
Created April 7, 2013 15:50
TYPO3: Von Admin angelegter Content einer Gruppe zuweisen
# Vom Admin angelegter Content einer Gruppe zuweisen
TCEMAIN.permissions.groupid = 1