Skip to content

Instantly share code, notes, and snippets.

@maddy2101
maddy2101 / gist:776ca1c15074129de883
Last active October 27, 2017 08:56
Speckkuchen Rezept
hier wie versprochen mein Rezept:
500g Weizenmehl,
50g Margarine
1 Teeloeffel Salz
250ml Milch
1 Ei
1 Wuerfel frische Hefe
Mehl in eine Schuessel sieben, in die Mitte ein Kuhle druecken. Milch
@maddy2101
maddy2101 / gist:183400d08ef1dae4f6aa
Last active August 29, 2015 14:19
how to find and display records in a list view filtered by user defined input
### Controller ###
public function listAction($search = NULL) {
if ($search === NULL) {
/** @var ...\Domain\Model\Search $search */
$search = $this->objectManager->get('...\\Domain\\Model\\Search');
$this->getCategorySearchFilterFromFlexForm($search); // this sets some preconfigured values from a flexform
}
$records = $this->recordRepository->findBySearchParameters($search);
@maddy2101
maddy2101 / gist:7340636
Created November 6, 2013 17:35
TypoLink ViewHelper that accepts and extends the parameters for the typolink function
<?php
/***************************************************************
* Copyright notice
*
* (c) 2013
* @author Anja Leichsenring <maddy@typovision.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
@maddy2101
maddy2101 / ext_tables.php
Last active July 30, 2021 12:16
integrate Flexform in TYPO3 6.0/6.1 Plugin
<?php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
$_EXTKEY,
'ObjectRandom',
'Object Trailer'
);
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_objectrandom';
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForm/AbstractObject/Flexform.xml');
@maddy2101
maddy2101 / gist:5668835
Last active March 12, 2021 12:08
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',