Skip to content

Instantly share code, notes, and snippets.

Working from home

Bastian Waidelich bwaidelich

Working from home
Block or report user

Report or block bwaidelich

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
bwaidelich / SentryExceptionHandler.php
Created Apr 30, 2014
Using Sentry for tracking errors in TYPO3 Flow
View SentryExceptionHandler.php
namespace Your\Package\Error;
/* *
* This script belongs to the TYPO3 Flow package "Your.Package". *
* *
* */
use TYPO3\Flow\Error\ProductionExceptionHandler;
bwaidelich / FluidFinisher.php
Last active Aug 29, 2015
Fluid finisher for the TYPO3.Form package
View FluidFinisher.php
namespace Your\Package\Form\Finishers;
use TYPO3\Flow\Utility\Arrays;
use TYPO3\Fluid\View\StandaloneView;
use TYPO3\Form\Core\Model\AbstractFinisher;
use TYPO3\Form\Core\Runtime\FormRuntime;
use TYPO3\Form\Exception\FinisherException;
bwaidelich / Routes.yaml
Last active Aug 29, 2015
Example routing setup for the "Flickr" Plugin of the TYPO3.NeosDemoTypo3Org package
View Routes.yaml
name: 'Flickr: User stream'
uriPattern: '{node}/user/{--typo3_neosdemotypo3org-flickr.userId}.html'
'@package': 'TYPO3.Neos'
'@controller': 'Frontend\Node'
'@action': 'show'
'@format': 'html'
'@package': 'TYPO3.NeosDemoTypo3Org'
bwaidelich / Root.ts2
Created Jan 11, 2015
Getting an exception "Exception while rendering rawContent [...] No content collection of type TYPO3.Neos:ContentCollection could be found in the current node" in TYPO3 Neos 1.2.1? This happens due to a regression in that very release (see The bug is already fixed in git and will be in the next bugfix rel…
View Root.ts2
rawContent.body.allContentCollections.renderer = TYPO3.Neos:RawContent
View designer.html
<link rel="import" href="../google-map/google-map-search.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<link rel="import" href="../paper-input/paper-input.html">
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
View Player.php
namespace TomasNorre\GolfnetInvitational\Domain\Model;
use TYPO3\Flow\Annotations as Flow;
use Doctrine\ORM\Mapping as ORM;
* @Flow\Entity
class Player {
bwaidelich / Template.html
Created Aug 15, 2011
localized dates in Fluid
View Template.html
{ '@{newsdate}', format: 'd.')} <f:translate key="monthNames.{ '@{newsdate}', format: 'n')}" /> { '@{newsdate}', format: 'Y')}
bwaidelich / gist:1205824
Created Sep 9, 2011
Update electronic address
View gist:1205824
$electronicAddresses = $person->getElectronicAddresses();
$electronicAddressIndex = $electronicAddresses->indexOf($modifiedElectronicAddress);
$electronicAddresses->set($electronicAddressIndex, $modifiedElectronicAddress);
bwaidelich / AbstractBaseController.php
Created Oct 17, 2011
FLOW3: Redirect to action based on (sub)domain
View AbstractBaseController.php
abstract class AbstractBaseController extends ActionController {
* Redirect to specific controller if current subdomain is not equal to the current controller name
* Note: initializeAction() is called before every action by default
* @return void
protected function initializeAction() {
bwaidelich / Caches.yaml
Created Oct 20, 2011
Disable Compilation of Fluid templates
View Caches.yaml
backend: TYPO3\FLOW3\Cache\Backend\NullBackend
You can’t perform that action at this time.