Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
programmieren [2013/01/17 12:12] – angelegt gevatterprogrammieren [2019/05/29 21:17] (current) gevatter
Line 1: Line 1:
 ====== Programmieren ====== ====== Programmieren ======
 +  * [[python]]
 +
 +===== HTML =====
 +  * [[http://www.preissens.de/html-header/header_generator.html|HTML Header Geneator]]
 +===== CSS =====
 +  * [[http://robertnyman.com/2010/01/11/css-background-transparency-without-affecting-child-elements-through-rgba-and-filters/|Transparenztricks]]
 ===== PHP ===== ===== PHP =====
-[[http://iblog.ikarius.net/index.php/2010/10/01/php-strtotime-und-kalenderwochen/|Mit Kalenderwochen rechnen]]+  * [[http://iblog.ikarius.net/index.php/2010/10/01/php-strtotime-und-kalenderwochen/|Mit Kalenderwochen rechnen]] 
 +  * [[http://www.tcpdf.org/|Bibliothek zum Arbeiten mit PDFs]] Die Doku ist dürftig aber die Funktionsumfang ist groß 
 + 
 +===== mysql ===== 
 +==== drop all tables ==== 
 +<code> 
 +SELECT concat('DROP TABLE IF EXISTS `', table_name, '`;'
 +FROM information_schema.tables 
 +WHERE table_schema = 'MyDatabaseName'; 
 +</code> 
 +source: https://stackoverflow.com/a/8248281 
 +===== git ===== 
 +  * [[http://ben.kulbertis.org/2011/10/synchronizing-a-mysql-database-with-git-and-git-hooks/|MySQL Datenbank per git synchronisieren]] 
 + 
 +===== grunt ===== 
 + 
 +  * grunt installed but command not available: https://stackoverflow.com/questions/10667381/node-package-grunt-installed-but-not-available 
 + 
 +===== Typo3 ===== 
 +  * [[http://www.tugle.de/know_how/typo3_tutorials/typoscript_komfortabel_editieren/syntax_highlighting_mit_gvim.html|vim syntax highlighting für typoscript]] 
 + 
 +  * bekommt seine eigene Seite [[typo3]] 
 +==== Tags aus Seitentitel löschen ==== 
 +<code> 
 +page { 
 +# STANDARD SEITENTITEL ABSCHALTEN 
 +    config.noPageTitle = 1 
 +# SEITENTITEL EINFÜGEN 
 +    headerData.6 = TEXT 
 +    headerData.6.field = title // subtitle 
 +    headerData.6.stdWrap { 
 +        outerWrap = <title>|</title> 
 +        HTMLparser.removeTags = sup 
 +    } 
 +
 +</code> 
 +==== Textschnippsel Systemweit suche und Ersetzen ==== 
 +<code> 
 +page.stdWrap.parseFunc.short { 
 +  EXAMPLE = Beispiel 
 +
 +</code> 
 +Quelle: [[http://www.jochenfroehlich.com/typo3-best-practice/texte-automatisch-ersetzen.html]] 
 + 
 +==== version 6: Filelinks von pdfs haben kein thumbnail ==== 
 +''tt_content.uploads.20.renderObj.10.file.ext = png'' 
 + 
 +Quelle: [[http://forge.typo3.org/issues/44571]] 
 + 
 +==== Defaultsprache beim anlegen eines BEUsers ändern ==== 
 +''$GLOBALS['TCA']['be_users']['columns']['lang']['config']['default'] = 'de';'' 
 +in extTables.php 
 + 
 +==== Eigene Extensions im Wizard auftauchen lassen ==== 
 + 
 +Next part (basing on this site) is adding your plugin to the New Content Element Wizard as noticed in TYPO3 Wiki since TYPO3 ver. 6.0.0 changed a little, so easiest way is adding something like this into your ext_tables.php: 
 +<code> 
 +\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:hello/Configuration/TypoScript/pageTsConfig.ts">'); 
 +</code> 
 +and in /typo3conf/ext/hello/Configuration/TypoScript/pageTsConfig.ts file write add this: 
 +<code> 
 +mod.wizards.newContentElement.wizardItems.plugins.elements.tx_hello_news { 
 +    icon = gfx/c_wiz/regular_text.gif 
 +    title = Scared Hello News 
 +    description = Displays Scared News 
 +    tt_content_defValues.CType = hello_news 
 +
 + 
 +# Below the same for TemplaVoila 
 +templavoila.wizards.newContentElement.wizardItems.plugins.elements.tx_hello_news { 
 +    icon = gfx/c_wiz/regular_text.gif 
 +    title = Scared Hello News 
 +    description = Displays Scared News 
 +    tt_content_defValues.CType = hello_news 
 +
 +</code> 
 + 
 +Source: http://stackoverflow.com/questions/18464356/how-to-quickly-create-custom-content-elements-in-typo3-6-x 
 + 
 +==== Content Columns für Usergruppen ausblenden ==== 
 +Page TsConfig: 
 +<code> 
 +TCEFORM.tt_content { 
 +    spaceBefore.disabled = 1 
 +
 +</code> 
 + 
 +User TsConfig: 
 +<code> 
 +page.TCEFORM.tt_content { 
 +    spaceBefore.disabled = 1 
 +
 +</code> 
 + 
 +source: http://blog.marit.ag/2007/07/18/wie-blende-ich-bereiche-des-backends-fur-bestimmte-user-aus/ 
 + 
 +==== Content Elemente kopieren und anpassen ==== 
 +**!UNDER CONSTRUCTION!** 
 + 
 +<code> 
 +t3lib_div::loadTCA('tt_content'); 
 +$TCA['tt_content']['columns']['CType']['config']['items'][] = array('Contentslider', 'bxslider','i/tt_content_image.gif'); 
 +$TCA['tt_content']['types']['bxslider'] = array( 
 + //'showitem' => '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.header;header, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.images, image, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.imagelinks;imagelinks, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.frames;frames, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.image_settings;image_settings, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended' 
 + 'showitem' => '--palette--;LLL:EXT:cms/locallang_ttc.xml:palette.general;general, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.images, image, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.imagelinks;imagelinks, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.appearance,  --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.image_settings;image_settings, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.visibility;visibility, --palette--;LLL:EXT:cms/locallang_ttc.xml:palette.access;access, --div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended' 
 +); 
 +// Achtung Bug! 
 +// Damit CCEs Bilder rendern können, muss die id in der Datei  typo3/sysext/core/Classes/Resource/Service/FrontendContentAdapterService.php eingetragen werden! 
 +// Siehe: http://forge.typo3.org/issues/46067 
 +// --pdieter 20131129 
 +</code>