Skip to content

Instantly share code, notes, and snippets.

Xiaoling pengmaradi

View GitHub Profile
View docker-compose.md

adminer - localhost:8080, apache, mysql

version: '2'
services:
    db:
        image: mysql
        ports:
            - 3306:3306
@pengmaradi
pengmaradi / tx_news-add-layout.md
Last active Sep 8, 2017
add templateLayout for news (TYPO3 tx_news)
View tx_news-add-layout.md

(altnativ) TCEFORM.tt_content.pi_flexform.news_pi1.template.settings.templateLayout


TCEFORM.tt_content.pi_flexform.news_pi1.template.settings\.templateLayout {
    # <f:if condition="{settings.templateLayout} == 4">
    addItems= 4
    addItems.4 = News Banner (in Headerbild)
}
@pengmaradi
pengmaradi / Image.html
Created Aug 7, 2017 — forked from mdbloch/Image.html
TYPO3 8.7 - Responsive Image
View Image.html
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<picture>
<source srcset="{f:uri.image(image: file, maxWidth: settings.maxImgWidth, cropVariant: 'default')}" media="(min-width: 1200px)">
<source srcset="{f:uri.image(image: file, maxWidth: '992', cropVariant: 'desktop')}, {f:uri.image(image: file, maxWidth: '1984', cropVariant: 'desktop')} 2x" media="(min-width: 992px)">
<source srcset="{f:uri.image(image: file, maxWidth: '768', cropVariant: 'tablet')}, {f:uri.image(image: file, maxWidth: '1536', cropVariant: 'tablet')} 2x" media="(min-width: 768px)">
<source srcset="{f:uri.image(image: file, maxWidth: '768', cropVariant: 'mobile')}, {f:uri.image(image: file, maxWidth: '1536', cropVariant: 'mobile')} 2x" media="(max-width: 767px)">
<!---Fallback--->
<img class="img-responsive" src="{f:uri.image(image: file, maxWidth: settings.maxImgWidth, cropVariant: 'default')}" alt="{image.alternative}" longdesc="{image.description}" title="{image.title}">
</picture>
@pengmaradi
pengmaradi / brew.md
Last active Aug 7, 2017
macOS 缺失的软件包管理器 Homebrew
View brew.md

Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


brew install wget
brew install ImageMagick
@pengmaradi
pengmaradi / mac-apache-rewrite.md
Last active Aug 4, 2017
/etc/apache2/httpd.conf
View mac-apache-rewrite.md

# /etc/apache2/httpd.conf

LoadModule rewrite_module libexec/apache2/mod_rewrite.so
# if has php7
#LoadModule php5_module        libexec/apache2/libphp5.so
@pengmaradi
pengmaradi / gridemelment-content2accordion.md
Last active Jan 9, 2017
gridelements makes header,textmedia,bullets,table,uploads,multimedia,media,menu as accordion in TYPO3
View gridemelment-content2accordion.md

gridelements works with page TS, typoscript, dataProcessing and fluid templates

  • page ts
tx_gridelements.setup {
    accordion {
        title = Accordion
        alias = accordion
        icon = EXT:custom_template/Resources/Public/Icons/accordion.svg
@pengmaradi
pengmaradi / first.md
Last active Jun 3, 2018
first shell script
View first.md

First Shell Script

#!/bin/bash
#for i in "1" "2" "3" "4" "5" "6" "7" "8" "9"
#do
#        for j in "1" "2" "3" "4" "5" "6" "7" "8" "9"
#  do
#          if [ ${j} -lt  ${i} ]
@pengmaradi
pengmaradi / iconfile.md
Last active Oct 24, 2016
Extbase iconfile in TYPO3 7.6
View iconfile.md

Extbase in TYPO3 7.6 has no Icons

TCA/domain.php

'iconfile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('exrkey') . 'Resources/Public/Icons/tx_extkey_domain_model_images.gif'
'iconfile' => 'EXT:extkey/Re...',
View typo3-6.2.26 sql error
# SQL error: Incorrect integer value: '' for column 'sys_language_uid' at row 1
´´´ SQL
'SYS' => array(
// ...
'setDBinit' => 'SET SESSION sql_mode = \'NO_ENGINE_SUBSTITUTION\';',
// ...
´´´
@pengmaradi
pengmaradi / stdWrap.md
Created Apr 27, 2016
Auflistung der TypoScript Hierarchie von stdWrap:
View stdWrap.md

Auflistung der TypoScript Hierarchie von stdWrap

outerWrap
   wrap3
      prepend
         dataWrap
            wrap2
               noTrimWrap
You can’t perform that action at this time.