Skip to content

Instantly share code, notes, and snippets.

View ulrikkold's full-sized avatar

Ulrik Høyer Kold ulrikkold

View GitHub Profile
@ulrikkold
ulrikkold / composer.json
Created November 17, 2017 10:54 — forked from helhum/composer.json
The (currently) ideal TYPO3 composer setup
{
"require": {
"typo3-console/composer-auto-setup": "^0.1",
"georgringer/news": "^6.1",
"helhum/typo3-secure-web": "^0.2.5",
"typo3/cms-introduction": "^3.0"
},
"extra": {
"typo3/cms": {
"cms-package-dir": "{$vendor-dir}/typo3/cms",
@ulrikkold
ulrikkold / build.xml
Last active August 29, 2015 14:11 — forked from derhansen/build.xml
<project name="TYPO3-62-Extbase-Extension" default="build" basedir=".">
<property environment="env"/>
<target name="build" depends="init, unittests, phpcs, phpmd, phpcpd, cleanup">
</target>
<target name="init">
<mkdir dir="${env.WORKSPACE}/build"/>
<mkdir dir="${env.WORKSPACE}/build/phpcs"/>
<mkdir dir="${env.WORKSPACE}/build/phpunit"/>
@ulrikkold
ulrikkold / List.html
Last active November 21, 2016 13:24
Including an overwriteDemand GET param with TYPO3 Fluid and tx_news
{namespace n=Tx_News_ViewHelpers}
<section>
<f:for each="{news}" as="newsItem" iteration="iterator">
<n:link
newsItem="{newsItem}"
settings="{settings}"
configuration="{additionalParams: '&tx_news_pi1[overwriteDemand][categories]={f:for each=\"{newsItem.categories}\" as=\"category\" iteration=\"categoryIteration\">{category.uid}<f:if condition=\"{categoryIteration.isLast}\"><f:then></f:then><f:else>,</f:else></f:if></f:for>'}">
{newsItem.title}</n:link>
</f:for>
</section>
@ulrikkold
ulrikkold / SurfDeployConfig.php
Last active August 29, 2015 14:07
My Deployment configuration fails - why is that?
<?php
// The Deployment config - mostly copied from an example
// TYPO3 Surf script to deploy and update TYPO3 Neos at your uberspace.de account
// before of after the initial deployment, you have to setup some things manually at your host (e.g. DB credentials in Settings.yaml)
// Create a simple workflow based on the predefined 'SimpleWorkflow'.
$workflow = new \TYPO3\Surf\Domain\Model\SimpleWorkflow();
@ulrikkold
ulrikkold / gist:6893632472eb07a8b15b
Created September 25, 2014 19:12
Using composer.json with private repositories (without using Packagist)
This is mostly a note to my own bad memory. I hope somebody else can use it, too.
When using composer to manage packages, and one or more of these packages (including the root project itself) is not registered on Packagist, then you must include an entry in the "repositories" array in your composer.json.
I am pretty sure this must be noted somewhere in the documentation, but I was not able to find it.
Example:
{
"name": "vendor/PackageA",

Keybase proof

I hereby claim:

  • I am ulrikkold on github.
  • I am ulrikkold (https://keybase.io/ulrikkold) on keybase.
  • I have a public key whose fingerprint is 9D58 52B0 27B7 FC9F A80F 4BDF 569C 848C 17CE AC64

To claim this, I am signing this object:

<?php
/* *
* Typical TYPO3 Surf deployment for TYPO3 CMS with one target node *
* *
* It is free software; you can redistribute it and/or modify it under *
* the terms of the GNU Lesser General Public License, either version 3 *
* of the License, or (at your option) any later version. *
* *
* The TYPO3 project - inspiring people to share! *