Skip to content

Instantly share code, notes, and snippets.

View runningnet's full-sized avatar

The men behind! runningnet

  • World
View GitHub Profile
@runningnet
runningnet / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@runningnet
runningnet / t3debug.php
Created October 17, 2014 08:22
Typo3 Debug und Datenbank debug
# Allgemeines Debug
t3lib_div::debug($data,'Name der Ausgabe');
# Datenbank debug
# Allgemeines DB Debug
$GLOBALS['TYPO3_DB']->debugOutput = true;
# Wenn man es in einer ext braucht.
$GLOBALS['TYPO3_DB']->store_lastBuiltQuery = true;
// PHP + SQL hier
@runningnet
runningnet / new_gist_file_0
Created November 10, 2014 16:29
Typo3 User Config, Cache löschen, BE ID anzeigen From http://www.pi-phi.de/29.html
// im Seitenbaum die SeitenIDs anzeigen:
options.pageTree.showPageIdWithTitle = 1
mod.web_list {
// allein durch anklicken kann ein Datensatz editiert werden
clickTitleMode = edit
// ListenZeilen bekommen im BE alternierende Farben
alternateBgColors = 1
}
<?php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY,
'ObjectRandom',
'Object Trailer'
);
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_objectrandom';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForm/AbstractObject/Flexform.xml');
<?php
/***************************************************************
* Copyright notice
*
* (c) 2013
* @author Anja Leichsenring <[email protected]>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
SQL:
images int(11) unsigned DEFAULT '0',
=======================================================
TCA
....
'images' => array(
'exclude' => 0,
'label' => 'images',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'images',
[globalVar = GP:test = 1]
# Shows only content elements, which have not# uid 23,24,25
page.10 < styles.content.get
page.10.renderObj.stdWrap.if {
isInList.field = uid
value = 23,24,25
negate = 1
}
[end]
select concat('KILL ',id,';') from information_schema.processlist where user='root' into outfile '/tmp/a.txt';
source /tmp/a.txt;
@runningnet
runningnet / new_gist_file_0
Created December 29, 2014 16:12
Typo3 in updaten in einer Zeile
rm typo3_src && ln -s typo3_src-XXXX typo3_src
[globalVar = TSFE : beUserLogin > 0]
config.simulateStaticDocuments = 0
[global]