Skip to content

Instantly share code, notes, and snippets.

View rob-ot-dot-be's full-sized avatar

Rob De Vries rob-ot-dot-be

View GitHub Profile
sudo port install php55 +fastcgi fcgi apache-ant php55-cgi php55-mbstring php55-curl php55-mcrypt php55-imagick php55-xdebug php55-iconv php55-mongo php55-oauth php55-openssl php55-esmtp php55-pop3 php55-tidy php55-uploadprogress php55-pcntl php55-sockets php55-soap php55-ssh2 php55-big_int php55-gd php55-svm php55-html_parse php55-http php55-mysql php55-pdflib php55-pear php55-peb php55-posix php55-pspell php55-rar php55-redis php55-snmp php55-stomp php55-svn php55-wddx php55-xmlrpc php55-yaml php55-zip php55-dbase php55-excel php55-gdchart php55-imap php55-xsl php55-redis beanstalkd
sudo port install postgresql93 postgresql93-server postgresql93-doc postgresql_autodoc php55-postgresql phppgadmin postgresql-jdbc mysql56-server phpmyadmin maven3 maven-ant-tasks postgis2 +postgresql93 git qgis re2c json-c
sudo port install nginx +flv +geoip +gzip_static +mail +mp4 +ssl +status +substitution +upload +upload_progress +xslt +zip
You may need to update your php.ini for any changes that have been made in this ve

Multiple sys_category fields in one table

When your table has more than 1 field with relations to sys_category you will run into problems because the MM relation table sys_category_record_mm will only store which table a category belongs to - but not the specific field.

You need to extend sys_category_record_mm like this:

Add the following to your extension's ext_tables.sql:

CREATE TABLE sys_category_record_mm (
@rob-ot-dot-be
rob-ot-dot-be / tail mysql
Created May 18, 2014 09:40
tail -f /var/log/mysql-query.log
tail -f /var/log/mysql-query.log
@rob-ot-dot-be
rob-ot-dot-be / Flexform settings from BE modulle use in controller extbase
Created March 26, 2014 10:16
Flexform settings from BE modulle use in controller extbase
/**
* action flexformcaltypes
*
* @param \Typo3\Caltool\Domain\Model\Widget $widget
* @return void
*/
public function flexformcaltypesAction($params, $conf) {
$data = \TYPO3\CMS\Core\Utility\GeneralUtility::xml2array($params['row']['pi_flexform']);
$widgetId = $data['data']['sDEF']['lDEF']['settings.berekenenkel']['vDEF'];
$extbaseObjectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
<?php
/** @var $extbaseObjectManager \TYPO3\CMS\Extbase\Object\ObjectManager */
$extbaseObjectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager');
/** @var $newsRepository \Tx_News_Domain_Repository_NewsRepository */
$newsRepository = $extbaseObjectManager->get('Tx_News_Domain_Repository_NewsRepository');
/** @var $newsRecord \Tx_News_Domain_Model_News */
$newsRecord = $newsRepository->findByUid($newsParams['news']);
@rob-ot-dot-be
rob-ot-dot-be / typo3 install
Created January 14, 2014 09:10
typo3-62 install
mkdir htdocs
mkdir logs
# CLONE MASTER
http://git.typo3.org/Packages/TYPO3.CMS.git
# GO TO HTDOCS
cd htdocs
#SYMLINS
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<meta type="array">
<langDisable>1</langDisable>
</meta>
<sheets>
<general>
<ROOT type="array">
<TCEforms>
<sheetTitle>Spalten (normal)</sheetTitle>
@rob-ot-dot-be
rob-ot-dot-be / html5 boilerplate
Created December 17, 2012 11:32
HTML5 boilerplate via git
git clone https://github.com/h5bp/html5-boilerplate.git
@rob-ot-dot-be
rob-ot-dot-be / type.scss
Created December 16, 2012 15:27 — forked from mirisuzanne/type.scss
Using the Modular Scale plugin along with Compass Vertical Rhythms module.
// Using the Modular Scale plugin along with Compass Vertical Rhythms module.
// The goal is to use MS to give us the values,
// and use VR to apply those values to our typography.
// ---------------------------------------------------------------------------
// Defaults
$base-size: 24px;
$ratio: major-third() fifth();
@rob-ot-dot-be
rob-ot-dot-be / dynamic_css_001
Created November 12, 2012 20:14
Dynamic background-image stylesheet with image ffrom media field TYPO3
css = PAGE
css {
typeNum = 22
config {
additionalHeaders = Content-type: text/css
disableAllHeaderCode = 1
}
stdWrap.required = 1
stdWrap.wrap = |
10 = TEXT