This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SQL: | |
images int(11) unsigned DEFAULT '0', | |
======================================================= | |
TCA | |
.... | |
'images' => array( | |
'exclude' => 0, | |
'label' => 'images', | |
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( | |
'images', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select concat('KILL ',id,';') from information_schema.processlist where user='root' into outfile '/tmp/a.txt'; | |
source /tmp/a.txt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm typo3_src && ln -s typo3_src-XXXX typo3_src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[globalVar = TSFE : beUserLogin > 0] | |
config.simulateStaticDocuments = 0 | |
[global] |
OlderNewer