Skip to content

Instantly share code, notes, and snippets.

View h3nn3s's full-sized avatar

Henrik Ziegenhain h3nn3s

View GitHub Profile
@h3nn3s
h3nn3s / gist:728113b0a81975bd5449
Last active June 12, 2018 09:11
TYPO3 Gridelements with FLUIDTEMPLATE (3 columns)
/*
* TypoScript
*/
# render headline
#tt_content.gridelements_pi1.10 = < lib.stdheader
tt_content.gridelements_pi1.20.10.setup {
1 < lib.gridelements.defaultGridSetup
1 {
cObject = FLUIDTEMPLATE
cObject {
@h3nn3s
h3nn3s / gist:d0c2015ff7fc4a7c438a
Created July 16, 2014 05:59
TYPO3 Gridelements with Flexform-Image
/*
* TypoScript
*/
# render headline
#tt_content.gridelements_pi1.10 = < lib.stdheader
tt_content.gridelements_pi1.20.10.setup {
1 < lib.gridelements.defaultGridSetup
1 {
columns {
1 < .default
@h3nn3s
h3nn3s / lib.hreflang
Last active August 29, 2015 14:04
TYPO3 hreflang-Links via Sprach-Menü
lib.hreflang = HMENU
lib.hreflang {
special = language
special.value = 0,1,2
1 = TMENU
1 {
# Link zu nicht-aktiven Sprachen anzeigen
NO = 1
NO {
stdWrap.cObject = TEXT
@h3nn3s
h3nn3s / installTypo3.sh
Last active January 2, 2017 09:15
Bash-Script for installing latest TYPO3 sources and fetching things from github
#!/bin/bash
url="http://get.typo3.org/7"
target="t3latest.tar.gz"
workingdirectory=${PWD}
clear
echo "Getting the TYPO3 Sources from ${url}, writing to ${target}"
# get the sourcec
@h3nn3s
h3nn3s / Modal.js
Last active March 31, 2016 08:39 — forked from ahoffmeyer/Modal.js
TYPO3 Modalbox with single content or full page selection using jQuery (working example for TYPO3 7 LTS)
(function(window, document, $) {
"use strict"
// Just for testing purposes this function triggers on all links
$('a').on('click', function(event) {
event.preventDefault();
// remove all existing modalboxes in DOM
<?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>
@h3nn3s
h3nn3s / Unhide Anchor link clicks behind header
Created April 12, 2016 11:35
Find and replace anchor links to not hide Anchor behind fixed Header
@h3nn3s
h3nn3s / powermail.ts
Last active November 15, 2016 09:32
Script to fetch post params from TYPO3s powermail Extension and send it to an email address (newsletter subscription for Supermailer). In order to use the BasicAuthProtection powermail needs this pull request to be merged: https://github.com/einpraegsam/powermail/pull/7
plugin.tx_powermail.settings.setup {
marketing {
# Send Form values to CRM like salesforce or eloqua
sendPost {
# Activate sendPost (0/1)
_enable = TEXT
_enable.value = 1
# Target URL for POST values (like http://www.target.com/target.php)
targetUrl = http://www.example.com/scripts/supermailer-powermail-crm.php?debug=1
@h3nn3s
h3nn3s / gist:5071939327876e7328c5711951101066
Last active November 23, 2016 09:49 — forked from gthln/gist:8401080
Install Composer on Managed Hosting at Domainfactory

Install Composer on Managed Hosting at Domainfactory

Step 1:

Log in to your Managed Hosting Server via SSH

Step 2:

Add these two lines to .bashrc:

@h3nn3s
h3nn3s / Configuration-TCA-Overrides-tx_kesearch_indexerconfig.php
Last active January 21, 2020 14:44
Custom indexer configuration for TYPO3 Extension ke_search. This Script is made for TYPO3 7 LTS (and above, but untested atm) and respects - besides the "normal" sysfolder - the storagepids_recursive field too.
<?php
// enable "sysfolder" and "startingpoints_recursive" field
$GLOBALS['TCA']['tx_kesearch_indexerconfig']['columns']['sysfolder']['displayCond'] .= ',customindexer';
$GLOBALS['TCA']['tx_kesearch_indexerconfig']['columns']['startingpoints_recursive']['displayCond'] .= ',customindexer';