Skip to content

Instantly share code, notes, and snippets.

@alrnz
alrnz / indexed_search.ts
Last active May 8, 2019 08:51
Indexed Seach TYPO3 translation #TYPO3 #TypoScript
plugin.tx_indexedsearch {
_LOCAL_LANG {
en {
submit_button_label = Search
form_searchFor = Search for
searchFor = Your search for
pi_list_browseresults_display = Displaying results ###TAG_BEGIN###%s to %s###TAG_END### out of ###TAG_BEGIN###%s###TAG_END###
noResults = NO results found.
}
de {
@alrnz
alrnz / .htaccess
Last active February 14, 2023 13:29
[Mittwald htaccess] htaccess rules for Mittwald standard domains #htaccess #Mittwald
# mittwaldserver umleiten
RewriteEngine on
RewriteCond %{HTTP_HOST} ^.*\.mittwaldserver\.info [NC,OR]
RewriteCond %{HTTP_HOST} ^.*\.webspaceconfig\.de [NC]
RewriteCond %{HTTPS}s ^on(s)|
# # Zugriff verbieten (403 Fehler) (einfacher einzubinden, reicht für SEO)
# RewriteRule ^.* - [F]
# # umleiten auf andere Domain (besser für User)
RewriteRule ^ http%1://www.DOMAIN.de/$1 [R=301,L]
@alrnz
alrnz / smoothAnkerScroll.js
Last active May 8, 2019 08:53
smoothAnkerScroll #JS
(function($) {
$(document).ready(function(){
function smoothAnkerScroll(){
try{
var hash = window.location.hash;
var target = hash.replace('#to-', '');
if(target != ''){
target = $('#' + target);
target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
@alrnz
alrnz / scene.sh
Last active May 8, 2019 08:52
Control Hue with linux sh-script #Shell #hue
#!/bin/tclsh
# Use with: /path/to/scene.tcl SCENEID-on-0
# Hue Bridge IP
set ip "192.168.0.67"
# Hue Username created via interface: http://www.developers.meethue.com/documentation/getting-started
set user "123abc456def"
if { $argc < 1 } {
@alrnz
alrnz / FluidTemplate.html
Last active May 8, 2019 08:54
TYPO3 Fluid flexible counter/iterator (count not every step) #TYPO3 #Fluid
<div xmlns="http://www.w3.org/1999/xhtml" lang="en"
xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
xmlns:flux="http://typo3.org/ns/FluidTYPO3/Flux/ViewHelpers"
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
<div>
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
<v:variable.set name="i" value="0" />
<f:for each="{array}" as="elem" iteration="iterator">
val: {i} <br>
@alrnz
alrnz / flexform.xml
Last active September 11, 2019 10:57
TypoLink in flexform for TYPO3 7.6 #TYPO3
<settings.link>
<TCEforms>
<exclude>1</exclude>
<label>
Link to Page or a File or a Content-Element
</label>
<config>
<type>input</type>
<size>30</size>
<eval>trim</eval>
@alrnz
alrnz / rte.ts
Last active May 8, 2019 08:56
[RTE Bootstrap Buttons] Add Bootstrap Button classes to RTE links #TYPO3-62 #TypoScript
# Bootstrap Buttons to RTE
RTE.default.buttons {
link.properties.class.allowedClasses := addToList(btn btn-default, btn btn-primary)
}
@alrnz
alrnz / rte.css
Last active April 15, 2016 14:47
Add classes to RTE for span/div/p
.product{
color: #00964f;
}
div.product{
color: #00964f;
}
span.product{
color: #00964f;
}
p.product{
@alrnz
alrnz / rte.ts
Created April 15, 2016 15:12
Add special custom format to TYPO3 RTE
RTE.default.userElements {
10 = Hoch und Tief
10 {
1 = Hochgestellt
1.description = Potenz hochgestellt
1.mode = wrap
1.content = <sup>|<sup>
2 = Index
@alrnz
alrnz / TwitterTextViewHelper.php
Created April 26, 2016 14:21
TwitterTextViewHelper
<?php
namespace Sunzinet\SzNewsroom\ViewHelpers;
/**
* This file is part of the TYPO3 CMS project.
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.