Log in to your Managed Hosting Server via SSH
Add these two lines to .bashrc:
<?php | |
namespace Vendor\Extension\Hooks; | |
use TYPO3\CMS\Backend\Utility\BackendUtility; | |
use TYPO3\CMS\Core\Cache\CacheManager; | |
use TYPO3\CMS\Core\Cache\Exception\NoSuchCacheGroupException; | |
use TYPO3\CMS\Core\Database\ReferenceIndex; | |
use TYPO3\CMS\Core\SingletonInterface; | |
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; |
#!/bin/bash | |
# This script dumps all neccessary tables for LOCAL Development | |
# Be aware, that it excludes all userdata, caches and environment | |
# specific tables! | |
PASSWORD= | |
HOST= | |
USER= | |
DATABASE= |
<?php | |
namespace HenrikZiegenhain\MyExt\Domain\Validator; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2018 Henrik Ziegenhain <[email protected]> | |
* | |
* All rights reserved | |
* |
<?php | |
namespace HenrikZiegenhain\MyExt\DataProcessor; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2018 Henrik Ziegenhain <[email protected]> | |
* All rights reserved | |
* | |
* This script is part of the TYPO3 project. The TYPO3 project is |
<?php | |
namespace HenrikZiegenhain\MyExt\ViewHelpers; | |
/*************************************************************** | |
* Copyright notice | |
* | |
* (c) 2018 Henrik Ziegenhain <[email protected]> | |
* | |
* All rights reserved | |
* |
<?php | |
$host = getenv('SERVER_NAME'); | |
$patternDev = '/^dev\./'; | |
$patternProduction = '/^www\./'; | |
if (preg_match($patternDev, $host)) { | |
putenv('TYPO3_CONTEXT=Development'); | |
} | |
if (preg_match($patternProduction, $host)) { | |
putenv('TYPO3_CONTEXT=Production'); |
<?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'; |
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 |
$(function() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') | |
&& location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top - 124 //offsets for fixed header |