Skip to content

Instantly share code, notes, and snippets.

FILE: pi/class.tx_ttnews.php
$allCatsArray = implode(array_keys($this->categories[$row['uid']]), ' cat');
if ($allCatsArray) {
$markerArray['###NEWS_CATEGORY_UIDS###'] = 'cat'.$allCatsArray;
}
$('#subcategories').html('<img src="/fileadmin/system/files/img/ajax-loader.gif" class="ajaxloadersmall" />');
$.ajax({
type: "GET",
cache: "false",
url: "index.php?id=72&type=22122003",
contentType: "application/x-www-form-urlencoded; charset=utf-8",
data: $('#categoryselector').serialize(),
dataType: "html",
failure: function (response) {
$('html.touch #mainmenu .nav > li > a').each(function(){
var clicks = 0;
$(this).click(function(e){
var link = $(this).attr('href');
if(clicks == 0){
e.preventDefault();
var subnav = $(this).parent('li').children('ul');
subnav.slideDown(250);
} else {
window.location.href = link;
'wizards' => array(
'_PADDING' => 1,
'_VERTICAL' => 1,
'edit' => array(
'module' => array(
'name' => 'wizard_edit',
),
'type' => 'popup',
'title' => 'Edit',
'icon' => 'edit2.gif',
die(\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump( $newOrderNumer ));
find /html/typo3/fileadmin -name *.jpg -type f -print0 | xargs -0 ./jpegoptim --quiet --totals --strip-all -p -m85
find /html/typo3/fileadmin -name *.png -type f -print0 | xargs -n 1 -P 16 -0 ./optipng -o2 -strip all -quiet
{f:if(condition:'{iterator.cycle} == 1',then:'active',else:'test')}
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($var);
'wizards' => array(
'_PADDING' => 2,
'link' => array(
'type' => 'popup',
'title' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:header_link_formlabel',
'icon' => 'actions-wizard-link',
'module' => array(
'name' => 'wizard_link',
),
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'