Skip to content

Instantly share code, notes, and snippets.

Avatar

Stefan Schulz-Lauterbach stefansl

View GitHub Profile
@stefansl
stefansl / TL_CONFIG magickimages
Created Aug 12, 2013
default settings magickimages for Contao
View TL_CONFIG magickimages
$GLOBALS['TL_CONFIG']['magickimages_unsharp_mask'] = true;
$GLOBALS['TL_CONFIG']['magickimages_force'] = true;
$GLOBALS['TL_CONFIG']['magickimages_filter'] = 'Hermite';
$GLOBALS['TL_CONFIG']['magickimages_pngrewrite'] = true;
$GLOBALS['TL_CONFIG']['magickimages_optipng'] = false;
$GLOBALS['TL_CONFIG']['magickimages_advpng'] = false;
$GLOBALS['TL_CONFIG']['magickimages_unsharp_mask_radius'] = 0.3;
$GLOBALS['TL_CONFIG']['magickimages_unsharp_mask_sigma'] = 0.9;
$GLOBALS['TL_CONFIG']['magickimages_unsharp_mask_amount'] = 1.1;
$GLOBALS['TL_CONFIG']['magickimages_unsharp_mask_threshold'] = 0.005;
@stefansl
stefansl / contao_og
Last active Oct 13, 2015
Contao - opengraph tags in page layout
View contao_og
<meta property="og:image" content="{{env::url}}/files/_theme/images/facebook_preview.png" />
<meta property="og:url" content="{{env::path}}{{env::request}}" />
<meta property="og:site_name" content="{{page::rootTitle}}" />
<meta property="og:title" content="{{page::pageTitle}}" />
<meta property="og:type" content="website" />
@stefansl
stefansl / subcolumns dca
Last active Oct 13, 2015
Contao - limit subcolumn sets for user
View subcolumns dca
/* Paste this into your /system/config/dcaconfig.php */
/* Configuration: which types of sets should be in the selectmenu? */
$allowed_gaptypes = array( '25x25x25x25','33x33x33','50x50' );
if (is_array($GLOBALS['TL_SUBCL'])) {
foreach ( $GLOBALS['TL_SUBCL'] as $set_key => $value)
{
foreach ( $GLOBALS['TL_SUBCL'][$set_key]['sets'] as $key => $value)
{