Skip to content

Instantly share code, notes, and snippets.

@tim-bec
tim-bec / metamodels-prevnext.php
Created December 20, 2013 12:43
MetaModels preview / next link in details
<?php
$projectId = null;
$nextProject = null;
$prevProject = null;
$currProject = null;
$nextLink = null;
$prevLink = null;
if (count($this->items) > 0) {
$projectId = $this->items[0]->get('id');
<label for="ctrl_headline_1"><span class="translat-attr"></span>Überschrift 1</label>
span.translat-attr {
width: 12px;
height: 12px;
margin-right: 5px;
display: inline-block;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAIhAAACIQBDVcC+gAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAADqSURBVDiNxdNBK4RRFMbx39GErLCzoJQiNKYU+T6ifAoLZWujfAdbsVVYsVAWWKjZiSxmljR1bKTXmPdtapRTZ3Gf89z/Pfd2T2SmQWJooN1/AagVFxFRx2SXp5OZl2WAKL5BRJxjBU08YRVTmTlaBuh1hSZ2cYW98ubLAQ2s4Q2beKwC1Er0YdzgGYsR8VCotTNzvQrwihkco4N5HOAF+2hXdXCEWUzjENtf+ik+8P7ruMz8kRjBBRZwi3vMYQlnaBX90esrR8QO6tjAHcYwgWtsZeb4t7dqFiLiBMtdciszG30B+on/H6ZPXUtU6l0mlLQAAAAASUVORK5CYII751961559615f9fcc93790aeaf134b00');
}
<?php
/**
* Contao Open Source CMS
*
* Copyright (c) 2005-2014 Leo Feyer
*
* @package wwLayerSlide
* @author WESTWERK GmbH & Co. KG <web@westwerk.ac>
* @license LGPL
@tim-bec
tim-bec / boyfile.yml
Created December 14, 2017 11:22
composer faile boxfile
run.config:
# install php and associated runtimes
engine: php
# php engine configuration (php version, extensions, etc)
engine.config:
apache_document_root: app
apache_default_gateway: 'index.php'
runtime: php-5.6
max_execution_time: 120
# Let op: This memory limit could be a little bit high when deploying to aws, but we need it currently to resolve the composer deps