Skip to content

Instantly share code, notes, and snippets.

View spoonerWeb's full-sized avatar

Thomas Löffler spoonerWeb

View GitHub Profile
@spoonerWeb
spoonerWeb / AddCategoriesToFile.php
Created August 7, 2020 10:18
Add category records to TYPO3 file record (e.g. for using it when fetching files via DataProcessing)
<?php
namespace Vendor\Package\EventListener;
/*
* This file is part of a TYPO3 extension.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@spoonerWeb
spoonerWeb / ext_localconf.php
Created January 12, 2021 11:54
Add PageTS configuration to FlexForm elements
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'][\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfig::class] = [];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'][\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfigMerged::class] = [
'depends' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfig::class,
]
];
$GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['flexFormSegment'][\TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseRowDefaultValues::class] = [
'depends' => [
\TYPO3\CMS\Backend\Form\FormDataProvider\PageTsConfigMerged::class
]
@spoonerWeb
spoonerWeb / GitLab CI Links
Created June 24, 2018 08:19
Summary of links regarding GitLab CI/CD configurations
@spoonerWeb
spoonerWeb / config.yaml
Last active April 20, 2020 15:56
"ddev logs web" output
APIVersion: v1.13.1
name: typo3.org
type: typo3
docroot: public
php_version: "7.4"
webserver_type: nginx-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
@spoonerWeb
spoonerWeb / composer.json
Created October 9, 2019 17:50
WordPress composer.json
{
"name": "spooner/wordpress",
"type": "project",
"config": {
"vendor-dir": "content/vendor"
},
"extra": {
"wordpress-install-dir": "wp",
"installer-paths": {
"content/plugins/{$name}/": [
@spoonerWeb
spoonerWeb / HelpfulToolsToConcentrate.md
Last active October 2, 2019 09:16
Helpful tools to concentrate on important things

Helpful tools to concentrate on important things

devdocs.io

It's a bundle of documentation of languages, projects and other stuff. Easily searchable and can be used offline.

Download: https://devdocs.io

postman

@spoonerWeb
spoonerWeb / FacebookVideoHelper.php
Last active August 6, 2019 07:31
Facebook video integration in TYPO3 (needs some love for FE rendering)
<?php
namespace Vendor\ExtensionKey\Helpers;
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
@spoonerWeb
spoonerWeb / package.json
Created November 2, 2018 14:08
package.json
{
"name": "gitlab-website-test",
"version": "1.0.0",
"description": "",
"main": "Gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
@spoonerWeb
spoonerWeb / pre-receive-php-lint
Created August 11, 2016 08:56
Pre-Receive Hook (php-lint)
#!/usr/bin/php
<?php
$ref = trim($argv[2]);
$diff = array();
$return = 0;
exec("git diff --name-only $argv[1] $ref 2> /dev/null", $diff, $return);
@spoonerWeb
spoonerWeb / RteHtmlParser.php
Last active July 14, 2016 17:15
Use wildcard in allowedClasses RTE
<?php
namespace Vendor\ExtensionKey\Html;
/**
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the