Skip to content

Instantly share code, notes, and snippets.

View htuscher's full-sized avatar

Hans Tuscher htuscher

View GitHub Profile
config.tx_extbase{
persistence{
enableAutomaticCacheClearing = 1
updateReferenceIndex = 0
classes{
Vendor\Extension\Domain\Model\Pages {
mapping {
tableName = pages
columns {
/**
* Equalizer for height of elements
*/
$('.equalizer').each(function() {
var heights = $(this).find('.watch').map(function() {
return $(this).height();
}).get(),
maxHeight = Math.max.apply(null, heights);
'Me.My:NodeType':
# superTypes and ui stuff here
properties:
yourProperty: #adjust to your needs
type: references
ui:
label: 'referenced stuff' #adjust to your needs
inspector:
group: general #adjust to your needs
editorOptions:
@htuscher
htuscher / AdditionalConfiguration.php
Last active August 29, 2015 14:09
Disable L10n Cache in TYPO3 6.2 using config files
<?php
use TYPO3\CMS\Core\Utility\GeneralUtility;
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['restrictfe']['enable'] = TRUE;
/**
* !!! IMPORTANT !!!
@htuscher
htuscher / Suggest.html
Last active April 26, 2019 17:49
TYPO3 Solr Autosuggest and Autocomplete using Extbase and TypeNum Ajax
<f:layout name="Default" />
<f:section name="Main">
<button type="button" class="close"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<div class="row">
<div class="col-md-9">
<div class="row">
<f:for each="{suggest}" as="sug">
<div class="col-sm-6 col-md-4">
<div class="thumbnail">
@htuscher
htuscher / PageIndexer.php
Created December 9, 2014 09:44
TYPO3 Solr pageIndexer recursive downline / upline enabled
<?php
namespace Vendor\MyExt\Solr\IndexQueue;
class PageIndexer extends \Tx_Solr_IndexQueue_PageIndexer
{
/**
* @param \Tx_Solr_IndexQueue_Item $item
*
* @return bool
@htuscher
htuscher / AdditionalConfiguration.php
Last active March 26, 2018 20:00
TYPO3 Multitree without domain records in development
<?php
use TYPO3\CMS\Core\Utility\GeneralUtility;
if (\TYPO3\CMS\Core\Core\Bootstrap::getInstance()->getApplicationContext()->isDevelopment()) {
/**
* This override adds the possibility to use multitree subdomains without domain records (for SHARED_DB, vagrant, etc.)
* You can override the mappings or undo the override by creating a config file inside conf.d
*
* The override PageRepository checks for $subdomain . exec('hostname -f')
@htuscher
htuscher / FallbackLanguageIndexer.php
Created February 12, 2015 15:55
TYPO3 Solr Custom language fallback per index queue
<?php
/**
* Copyright notice
*
* (c) Onedrop Solutions GmbH & Co. KG, www.1drop.de
*
* @author Hans Höchtl <hhoechtl@1drop.de>
*
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*/
@htuscher
htuscher / FluidResult.php
Created February 12, 2015 16:03
TYPO3 Solr using Fluid-Templating for results
<?php
/**
* Copyright notice
*
* (c) Onedrop Solutions GmbH & Co. KG, www.1drop.de
*
* @author Hans Höchtl <hhoechtl@1drop.de>
*
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*/
@htuscher
htuscher / Standard.html
Created February 27, 2015 13:08
FluidTYPO3 content_fallback
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
f:schemaLocation="https://fluidtypo3.org/schemas/fluid-master.xsd"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
flux:schemaLocation="https://fluidtypo3.org/schemas/flux-master.xsd"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers"
v:schemaLocation="https://fluidtypo3.org/schemas/vhs-master.xsd">
<f:layout name="Page" />
<f:section name="Configuration">