Skip to content

Instantly share code, notes, and snippets.


Manuel Selbach manuelselbach

View GitHub Profile
manuelselbach / PersistentObjectConverter.php
Last active Nov 6, 2015
Extbase TypeConverter to fetch e.g. hidden records from persistence. TypeConverter is configurable for each action and can be expanded with other query settings. See example in "YourController.php"
View PersistentObjectConverter.php
namespace MyVendor\MyExtension\Property\TypeConverters;
* Copyright notice
* (c) 2014 Manuel Selbach <>, triplesense reply
* All rights reserved
manuelselbach / SomeController.php
Last active Mar 1, 2016
Debug Repository Queries in Extbase
View SomeController.php
class SomeController
* Example method
public function someAction()
$results = $this->someRespository->findAll();
manuelselbach / headerimage.ts
Last active Jun 17, 2016
Use TYPO3 7 LTS crop feature in TypoScript
View headerimage.ts
lib.headerimage = COA
lib.headerimage {
10 = FILES
10 {
references {
data = levelmedia:-1, slide
listNum = 0
renderObj = IMG_RESOURCE
renderObj {
View git-dry-merge.txt
git merge --no-commit --no-ff <branch-name>
# To abort merge
git merge --abort
manuelselbach /
Last active Sep 7, 2017
How to fork to a private gitlab instance


your git repository can have more than one remote server; In this case we want to have two:

one for our private repository on gitlab (will be the default one, called origin) one to be connected to the source repo on github, to be able to pull new changes (will be called upstream) How to make a private fork from github to gitlab

# 1. clone the github project in your workspace
manuelselbach / ContentElementWizard.txt
Last active Dec 11, 2017
Register Plugin in new Element Wizard made simple! The file "ContentElementWizard.txt" should be located under "[extension_key]/Configuration/TSconfig/ContentElementWizard.txt" for this example. All the TYPO3 standard plugin registration stuff has also to be done. Have fun!
View ContentElementWizard.txt
mod.wizards.newContentElement.wizardItems.plugins {
elements {
[extension_key] {
icon = ../typo3conf/ext/[extension_key]/Resources/Public/Icons/icon.png
title = LLL:EXT:[extension_key]/Resources/Private/Language/locallang_be.xlf:plugin_title
description = LLL:EXT:[extension_key]/Resources/Private/Language/locallang_be.xlf:plugin_description
tt_content_defValues {
CType = list
list_type = [extensionkey]_[pluginname]
manuelselbach /
Created Dec 20, 2017
Activate SQL formatting in sequalpro
  • Open the bundle editor: Bundles > Bundle Editor > Input Field > Format > Format SQL
  • Search for clientid and replace the <input/> value attribute with dpriver-9094-8133-2031
  • You can now format code through ctrl + option + command + T

Here is how the input tag should look like:

<input type="hidden" name="clientid" value="dpriver-9094-8133-2031" />
# go to zsh first
git clone --recursive "${ZDOTDIR:-$HOME}/.zprezto"
# if not works out of the box uncomment this
# mv .zshrc .zshrc_bak
manuelselbach / composer.json
Created Jul 22, 2016
Snippet to test a custom branch of a TYPO3 extension in e.g. a fork
View composer.json
"package": {
"name": "placeholder/for-namespace",
"type": "typo3-cms-extension",
"source": {
"url": "",
"type": "git",
manuelselbach /
Last active May 9, 2020
How to add a custom element for the formEditor of ext:form

EXT:form How to add a custom form element

If you like to add a custom form element, please follow these steps. For detailed information and documentation of ext:form please visit the official documentation:


First of all create a new extension, which will hold all the configuration, templates, etc.

You can’t perform that action at this time.