Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / Dropdown-with-Multiple-checkbox-select-with-jQuery.markdown
Created February 20, 2015 09:54
Dropdown with Multiple checkbox select with jQuery
@benjaminrau
benjaminrau / Double2With4DecimalsFormat.php
Last active April 20, 2017 11:06
How to have a tca field of type float/double but nullable
<?php
class Double2With4DecimalsFormat {
function returnFieldJS() {
return '
return value.replace(",", ".");
';
}
function evaluateFieldValue($value, $is_in, &$set) {
if ('' == $value) {
return NULL;
@NamelessCoder
NamelessCoder / MyModel.php
Last active November 25, 2015 14:02
Example of using annotations to generate TCA configuration based on a Model class.
<?php
namespace FluidTYPO3\Demo\Domain\Model;
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
/**
* Domain Model: Simple entry with tag relations.
*
* The annotations on the class-level doc comment define
git submodule deinit -f .
git submodule init
@benjaminrau
benjaminrau / FCE.html
Created April 7, 2014 12:51
Using foreignTypes for inline relations
<flux:field.inline.fal
name="settings.images"
multiple="TRUE"
maxItems="20"
foreignTypes="{
2: {showitem: '--palette--;LLL:EXT:vmtemplates/Resources/Private/Language/locallang.xlf:flux.turningTiles.fields.settings.images.single;turningTilesPalette,--palette--;;filePalette'}
}" />
@tan3
tan3 / tsconfig.ts
Created April 3, 2014 07:52
TYPO3: tsconfig
# -----------------------------------------------------------------
# Sprachen + Spalten
# -----------------------------------------------------------------
mod.SHARED {
defaultLanguageFlag=de
defaultLanguageLabel=Deutsch
}
# -----------------------------------------------------------------
# Rechte für Benutzergruppe 'global'
# -----------------------------------------------------------------
@NamelessCoder
NamelessCoder / install_typo3_62_ft3.sh
Last active January 13, 2017 10:00
Bash script to install TYPO3 6.2 LTS (dev) and FluidTYPO3 extensions (dev)
#!/usr/bin/env bash
# phase one: core install
# Pro tip: edit the script and use this repository instead to try out the
# codename "Awesome Ocelot" project - which should be even faster than the
# bare 6.2 core: https://github.com/NamelessCoder/TYPO3.CMS.git
# Live demo of "Awesome Ocelot" is at http://staging.namelesscoder.net
git clone https://github.com/TYPO3/TYPO3.CMS.git --depth 1
@loschke
loschke / Bootstrap-3_Carousel-Collection
Last active March 6, 2024 15:31
Bootstrap 3 - Carousel Collection Pack
@daKmoR
daKmoR / toNamespaces.sh
Last active December 21, 2020 18:37
Converts a TYPO3 CMS extension from using non-namespaced names to namespaced names (used since TYPO3 6.0) Usage: just copy the file inside your extension and call it from the shell ./toNamespaces.sh It replaces MOST of the non-namespaced calls... but it's by far not perfect, so pls handle with care and ALWAYS look what it changed before commitin…
#!/bin/bash
search=()
replace=()
# 0
search+=("'tx_cms_layout'")
replace+=("'TYPO3\\\\CMS\\\\Backend\\\\View\\\\PageLayoutView'")
search+=("Facets_ChildNodeAccessInterface")
@mneuhaus
mneuhaus / Uploads.html
Created September 26, 2013 13:42
This is a little "hack" i used recently to render the default Uploads Content element using Fluid instead of TypoScript
<ul class="list-group">
<f:for each="{files}" as="file">
<li class="list-group-item">
<a href="{file.publicUrl}" >
<img src="typo3/gfx/fileicons/{file.extension}.gif" />
{file.name}
</a>
</li>
</f:for>
</ul>