Skip to content

Instantly share code, notes, and snippets.

View JPDesign's full-sized avatar

Dirk Jüttner JPDesign

  • JPDesign Dirk Jüttner
View GitHub Profile
@JPDesign
JPDesign / InsertExample.php
Created February 26, 2021 05:08 — forked from einpraegsam/InsertExample.php
TYPO3 QueryBuilder example use
<?php
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Utility\GeneralUtility;
// insert into tt_content (header, crdate, pid) VALUES ("New content", 123456789, 123);
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tt_content');
$queryBuilder
->insert('tt_content')
->values([
'header' => 'New content',
# TYPO3 6+ Typoscript
# fancybox group with data arttibute
tt_content.image.20.1.imageLinkWrap.linkParams.ATagParams.dataWrap = class="lightbox" data-fancybox-group="lightbox[{field:uid}]"
@JPDesign
JPDesign / CookieConsent.ts
Last active May 23, 2017 10:49
TYPO3-CookieConsent (typoscript)
[GLOBAL]
################################
### CookieConsent init START ###
### This is typoscript for the setup of your TYPO3
### (It is not a typescript, you can't include it as a JavaScript)
### Languages:
### Defalt 0 -> DE
### English 1 -> EN
### Have a look for your headerData, you'll need 281, 282 and 283
### If there is somthin else, change it (1281, 1282 and 1283)
@JPDesign
JPDesign / install-gist-scripts
Last active April 17, 2017 23:22 — forked from NQNStudios/install-gist-scripts
Manages executable scripts stored in Gists for use on Unix systems.
#!/bin/bash
# First argument: the ID of the Github Gist to clone from
GIST_ID=${1}
# Clone the gist in our bin directory
cd ~/bin
git clone git@gist.github.com:/${GIST_ID}.git
# symlink all scripts for global execution