Skip to content

Instantly share code, notes, and snippets.

View fiedsch's full-sized avatar
🏠
Working from home

Andreas Fieger fiedsch

🏠
Working from home
View GitHub Profile
<?php
$GLOBALS['TL_DCA']['tl_templates'] = array
(
// Config
'config' => array
(
'dataContainer' => 'Folder',
'validFileTypes' => 'html5,twig', // add twig

IBAN validieren -- jetzt aber!

Im Contao-Forum gibt es einen Thread (https://community.contao.org/de/showthread.php?76233-globalcitizen-php-iban), in dem ein User Probleme dabei hat, eine IBAN in einem Formular zu validieren. Er ist dabei vorgegangen, wie in unseren Blog-Posts auf https://www.contao-bayern.de beschrieben.

Um zu überprüfen, woran es lag, habe ich alle beschriebenen Schritte durchgeführt und bei Null begonnen.

Wie sich herausstellen wird: die Anleitung war unvollständig und ein klassicher Fall von "works on my mashine" :-(

@fiedsch
fiedsch / Contao backup script
Last active October 20, 2018 16:42
Contao Backup
moved to repository https://github.com/fiedsch/contao-backup-script
see also https://github.com/fiedsch/contao-4-backup-script (for Contao 4)
@fiedsch
fiedsch / make_presentaion.sh
Last active March 27, 2016 15:33
make reveal.js presentation
#!/bin/bash
#
# Präsentations-Slides für den Contao Stammtisch München erzeugen
#
# Time-stamp: <2015-09-23 12:08:52 andreas>
TALK=extensions
# Javascript Framework für die Slides
FORMAT=revealjs
@fiedsch
fiedsch / patch hooks documentation
Last active August 29, 2015 14:23
Patch *.md files from Contao's hook documentation to match the ATX style
#!/usr/bin/perl
use strict;
use warnings;
my $dir = 'docs/api/hooks';
my $patcheddir = "hooks_patched";
opendir(DIR, $dir) || die "Can't open directory: $!\n";
# Mapping Excel Column Name ("A", ..., "Z") to Perl Arrayindex
sub EC {
my $name = shift;
if ($name !~ /^[A-Z]+$/i) {
die "ungültiger Spaltenname $name\n";
}
@fiedsch
fiedsch / makefile
Created February 11, 2015 13:24
pretty print Contao documentation with LaTeX
# Die Contao Dokumentantion (Manual und Cookbook)
# als "hübsch" formatierte Dokumentation (PDF) erstellen.
# Quellen (Markdown Dokumente)
MDCOOKBOOK=./docs/cookbook/de
MDMANUAL=./docs/manual/de
OUT=./latex
@fiedsch
fiedsch / search all Contao hooks
Last active August 29, 2015 14:10
search all Contao Hooks
#/bin/bash
# Alle Hooks aus Contao suchen
#WEBROOT=/your/web/root/directory
WEBROOT=/Users/andreas/Sites
# ROOT Verzeichnis einer Contao Installation
TL_ROOT=$WEBROOT/contao3.2