Skip to content

Instantly share code, notes, and snippets.

View manuelselbach's full-sized avatar

Manuel Selbach manuelselbach

  • Frankfurt am Main
View GitHub Profile
@manuelselbach
manuelselbach / ContentElementWizard.txt
Last active January 29, 2021 08:49
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!
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]
}
#!/bin/zsh
# go to zsh first
git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
# if not works out of the box uncomment this
# mv .zshrc .zshrc_bak
setopt EXTENDED_GLOB
@manuelselbach
manuelselbach / setup.sh
Last active July 25, 2023 16:02
Install script for my personal tool chain (Mac OS)
#!/bin/bash
set -e
# insert a line to a file if the line does not already exist
# - first parameter is the file to insert the line
# - second parameter is the line to insert. It'll only be inserted if not already exists
# - third parameter is optional. This will override the search behavior.
# Instead of searching for the line of parameter 2 this term is used.
function insertLineIfNotExists {
FILE=$1
@manuelselbach
manuelselbach / PersistentObjectConverter.php
Last active November 8, 2021 16:45
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"
<?php
namespace MyVendor\MyExtension\Property\TypeConverters;
/***************************************************************
* Copyright notice
*
* (c) 2014 Manuel Selbach <m.selbach@reply.de>, triplesense reply
*
* All rights reserved