Skip to content

Instantly share code, notes, and snippets.

Stig Nørgaard Færch stigfaerch

Block or report user

Report or block stigfaerch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
stigfaerch / composer autoload custom extension
Last active Aug 22, 2018 — forked from t3easy/
Non composer extension insight composer mode TYPO3
View composer autoload custom extension
1. Copy your extension to `[web/]typo3conf/ext/` of your composer mode TYPO3 (or kickstart one with extension_builder).
2. Add autoload entry to your root composer.json (that one which requires "typo3/cms")
"autoload": {
"psr-4": {
"T3easy\\MyExt\\": "web/typo3conf/ext/my_ext/Classes/"
3. Run `composer dump-autoload -a` to update the autoloader.
stigfaerch / gist:8756668fbfbfa4d3c29be8f12ef6b9c7
Last active Aug 3, 2018 DAV - curl - create folder, upload/download file
View gist:8756668fbfbfa4d3c29be8f12ef6b9c7
#create folder
curl -u -X MKCOL ""
curl -u -T local_file_path
curl -u --output download_file_path
stigfaerch / gist:16d22bc1c8c56011d86d
Created Jan 28, 2016
TYPO3 Fluid ViewHelper - StringContains
View gist:16d22bc1c8c56011d86d
class StringContainsViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper {
* Returns true depending on $needle in $haystack and which mode is chosen
* @param string $haystack
* @param string $needle
* @param string $mode - contains, beginsWith, endsWith
stigfaerch / gist:2056dc6591f9b9cad686
Created Oct 30, 2014
TYPO3 Neos - typoscript - solution when doesn't work
View gist:2056dc6591f9b9cad686
prototype(TYPO3.Neos.NodeTypes:Text) {
number = ${q(node).property('number')}
@override.number = ${this.number}
#override makes it possible to insert number to class - as this.number wouldn't work here:
attributes.class.@process.addNumber = ${value + ' number-' + number}
You can’t perform that action at this time.