| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| programmieren [2013/08/15 08:18] – gevatter | programmieren [2019/05/29 21:17] (current) – gevatter |
|---|
| ====== Programmieren ====== | ====== Programmieren ====== |
| | * [[python]] |
| | |
| ===== HTML ===== | ===== HTML ===== |
| * [[http://www.preissens.de/html-header/header_generator.html|HTML Header Geneator]] | * [[http://www.preissens.de/html-header/header_generator.html|HTML Header Geneator]] |
| * [[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ß | * [[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 ===== | ===== git ===== |
| * [[http://ben.kulbertis.org/2011/10/synchronizing-a-mysql-database-with-git-and-git-hooks/|MySQL Datenbank per git synchronisieren]] | * [[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 ===== | ===== Typo3 ===== |
| * [[http://www.tugle.de/know_how/typo3_tutorials/typoscript_komfortabel_editieren/syntax_highlighting_mit_gvim.html|vim syntax highlighting für typoscript]] | * [[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 ==== | ==== Tags aus Seitentitel löschen ==== |
| <code> | <code> |
| ''$GLOBALS['TCA']['be_users']['columns']['lang']['config']['default'] = 'de';'' | ''$GLOBALS['TCA']['be_users']['columns']['lang']['config']['default'] = 'de';'' |
| in extTables.php | 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> |