Skip to content

Instantly share code, notes, and snippets.

@tmaroschik
tmaroschik / gist:3183702
Created July 26, 2012 18:39
Flux Grid Language Hack
--- ext/flux/Classes/Backend/TceMain.php
+++ ext/flux/Classes/Backend/TceMain.php
@@ -182,12 +182,23 @@
case 'new':
$newUid = $reference->substNEWwithIDs[$id];
$oldUid = $fieldArray['t3_origuid'];
+ $newLanguageUid = NULL;
+ if ($oldUid) {
+ $oldRecord = $GLOBALS['TYPO3_DB']->exec_SELECTgetSingleRow('uid,' . $GLOBALS['TCA'][$table]['ctrl']['languageField'], $table, 'uid = ' . $oldUid);
+ if (isset($oldRecord[$GLOBALS['TCA'][$table]['ctrl']['languageField']])) {
@tmaroschik
tmaroschik / AjaxLoginHandler.php
Created August 21, 2012 16:11
One of the first TYPO3 6.0 Namespaced classes.
<?php
namespace TYPO3\CMS\Backend;
/***************************************************************
* Copyright notice
*
* (c) 2008-2011 Christoph Koehler (christoph@webempoweredchurch.org)
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
<?php
/***************************************************************
* Copyright notice
*
* (c) 2011 Thomas Maroschik <tmaroschik@dfau.de>
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@tmaroschik
tmaroschik / device_descriptions_HBW-SD6-Multikey-v1.json
Last active June 14, 2020 14:50
HBW-SD6-Multikey-v1 device descriptions
{
"HBW-SD6-Multikey-v1": {
"MASTER": {
"LOGGING_TIME": {
"DEFAULT": 5.0,
"FLAGS": 1,
"ID": "LOGGING_TIME",
"MAX": 25.0,
"MIN": 0.1,
"OPERATIONS": 7,