Skip to content

Instantly share code, notes, and snippets.

@velletti
velletti / 0_reuse_code.js
Created November 15, 2016 07:35
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
@velletti
velletti / tx-extension-domain-model.php
Created October 20, 2016 12:23
TYPO3 TCA domain Model Link example with Link Wizard
'url' => [
'exclude' => 0,
'label' => 'LLL:EXT:jv_events/Resources/Private/Language/locallang_db.xlf:tx_jvevents_domain_model_event.event_type.internalLink',
'config' => [
'type' => 'input',
'size' => '30',
'max' => '255',
'eval' => 'trim,required',
'wizards' => [
@velletti
velletti / tx-extension-domain-model.php
Created October 20, 2016 12:19
TYPO3 - Event Model - Field Sys language example with search on same page
'l10n_parent' => array(
'displayCond' => 'FIELD:sys_language_uid:>:0',
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.l18n_parent',
'config' => array(
'type' => 'select',
'renderType' => 'selectSingle',
'items' => array(
array('', 0),
),