Skip to content

Instantly share code, notes, and snippets.

Requirements for deployment

  • ssh (generate key and put on server)
  • make sure rsync is available on both servers

Needed info for each target system:

  • deploy directory
  • repository URL
  • database name
# bootstrap.yml
---
- hosts: newservers
vars:
- ubuntu_release: raring
- logwatch_email: <your email addy>
# crypted passwords, generated on a Linux box using:
# echo 'import crypt,getpass; print crypt.crypt(getpass.getpass(), "$6$YOURSALT")' | python -
- root_password: ''

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 (
tt_content.gridelements_pi1 {
# Display Headline above each grid element
//10 = < lib.stdheader
10 = CASE
10 {
key.field = tx_gridelements_backend_layout
default =< lib.stdheader
# Hide header on Tab ELEMENT
7 = TEXT
@tfeuerst
tfeuerst / gist:7319413
Last active December 27, 2015 11:29 — forked from maddy2101/gist:5668835
Modified Version for V6.1
SQL:
images int(11) unsigned DEFAULT '0',
=======================================================
TCA
....
'images' => array(
'exclude' => 0,
'label' => 'images',
# 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('images'),
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig(