Skip to content

Instantly share code, notes, and snippets.

@Ourelius
Ourelius / .htaccess
Created October 15, 2015 15:11
Typo3 .htaccess => RealURL ready
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin *
</IfModule>
RewriteEngine On
RewriteBase /
RewriteRule ^(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L]
RewriteRule ^typo3$ typo3/index_re.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
<?php
$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
'init' => array(
'enableCHashCache' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeCache' => 1,
'postVarSet_failureMode' => '',
/***
Equal Heights
***/
function matchHeight() {
var location = $('.row > .container'); // location
location.each(function(i, el){
var set = $('> div', el);
@Ourelius
Ourelius / fullheight.js
Last active August 29, 2015 14:26
Fullheight Container from Top to Bottom (equal Browserheight)
/***
Startimage Fullheight
***/
$(document).ready(function(){
if( $('.fullheight').length > 0 ){
var winHeight = $(window).height();
var fullheight = $('.fullheight');
fullheight.css({ 'height' : winHeight + 'px' });
@Ourelius
Ourelius / IsOnScreen.js
Last active August 29, 2015 14:26
IsOnScreen jQuery Function
/**
IS ON SCREEN FUNCTION
**/
$.fn.isOnScreen = function(){
var win = $(window);
var viewport = {
top : win.scrollTop(),
left : win.scrollLeft()
@Ourelius
Ourelius / custom.fluidmenu.scss
Last active August 29, 2015 14:25
Typo3 Fluid Menu (CSS only)
// Bootstrap + VHS
<div class="row">
<div class="container">
<div class="menu col-sm-12">
<v:page.menu classActive="active" classCurrent="current" classFirst="first" classLast="last" classHasSubpages="hasSubpages" substElementUid="1" pageUid="1" levels="2" useShortcutUid="false" expandAll="1" />
</div>
</div>
</div>
$TYPO3_CONF_VARS['GFX']['im_stripProfileCommand']
New value = -set colorspace RGB
<div class="row-fluid header box-shadow" data-spy="affix">
<div class="container">
<div class="col-sm-3">
<f:image src="EXT:rm_client/Resources/Public/Images/logo.svg" additionalAttributes="{style: 'width: 75%; height: auto;'}" alt="Barbara Kohler Mediation" title="Barbara Kohler Mediation" />
</div>
<div class="col-sm-8 col-sm-offset-1">
<div class="menu">
<ul>
<v:page.menu>
<f:for each="{menu}" as="item">
{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace flux=FluidTYPO3\Flux\ViewHelpers}
<f:layout name="Content" />
<f:section name="Configuration">
{v:variable.typoscript(path: 'plugin.tx_fluidcontentbootstrap.settings') -> v:variable.set(name: 'settings')}
{f:if(condition: settings.gridColumns, then: settings.gridColumns, else: 12) -> v:variable.set(name: 'numberOfColumns')}
<v:variable.set name="types" value="{1: 'none', 2: 'Bottom to Top', 3: 'Top to Bottom'}"/>
<flux:form id="row" label="Grid" options="{icon: '../typo3conf/ext/rm_client/Resources/Public/Icons/', group: 'FCE'}">
@Ourelius
Ourelius / Install Typo3
Last active December 4, 2019 11:45
Install Typo3
### Setup Typo3
# USING COMPOSER
$ curl -sS https://getcomposer.org/installer | php
$ mv composer.phar /usr/local/bin/composer
$ touch composer.json
$ sudo nano composer.json
{
"repositories": [