Skip to content

Instantly share code, notes, and snippets.

View MarkusGehrig's full-sized avatar
👨‍💻

Markus Gehrig MarkusGehrig

👨‍💻
  • Gerichte Kanton Aargau
  • Buchs AG, Switzerland
View GitHub Profile
@MarkusGehrig
MarkusGehrig / MyCustomActionBackend.yaml
Created December 5, 2019 08:33 — forked from xperseguers/MyCustomActionBackend.yaml
Custom finisher for EXT:form in TYPO3 v8
# File EXT:your_ext/Configuration/Yaml/MyCustomActionBackend.yaml
TYPO3:
CMS:
Form:
prototypes:
# add our finisher to the 'standard' form prototype
standard:
formElementsDefinition:
Form:
formEditor:
@MarkusGehrig
MarkusGehrig / delete_merged.sh
Created May 7, 2019 07:50 — forked from ribase/delete_merged.sh
this bash command will remove all merged branches
git branch --format="%(refname:lstrip=2)" --merged | xargs git branch -d
@MarkusGehrig
MarkusGehrig / TCASelectItems_performance_increase_IRRE.patch
Created November 15, 2018 08:46
TYPO3 8.7 IRRE Performance Increase
Index: cms/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectItems.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- cms/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectItems.php (revision )
+++ cms/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaSelectItems.php (revision )
@@ -43,6 +43,11 @@
continue;
}
@MarkusGehrig
MarkusGehrig / gist:381ed6909c73d91d1d255f2c30123549
Created August 16, 2018 09:59 — forked from maddy2101/gist:5668835
TCA, Model and Fluid Partial to display FAL images as a simple gallery using TYPO3 and Extbase 6.1
SQL:
images int(11) unsigned DEFAULT '0',
=======================================================
TCA
....
'images' => array(
'exclude' => 0,
'label' => 'images',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(
'images',
$ git remote rm origin
$ git remote add origin [email protected]:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master
/*
* Modifies a string to remove all non ASCII characters and spaces.
* Try slugify("é&asd_æô") for example
*/
function slugify($text)
{
// replace non letter or digits by -
$text = preg_replace('~[^\\pL\d]+~u', '-', $text);
// trim
$text = trim($text, '-');
@MarkusGehrig
MarkusGehrig / Image.html
Last active August 6, 2019 14:31 — forked from mdbloch/Image.html
TYPO3 8.7 - Responsive Image
<f:comment>
<f:render partial="Pictureblock" arguments="{imageObject: imageObject,
class: 'bla',
default: {maxWidth: settings.maxImgWidth, maxHeight: settings.maxImgHeight},
desktop: {maxWidth: 1000, maxHeight: 1000},
tablet: {maxWidth: 1000, maxHeight: 1000},
mobile: {maxWidth: 1000, maxHeight: 1000}}" />
</f:comment>
<f:if condition="{imageObject}">