jabongwa vor 2 Jahren
Commit
e81e27bab8

+ 156 - 0
Configuration/TCA/tx_begriffmgt_domain_model_term.php

@@ -0,0 +1,156 @@
+<?php
+return [
+    'ctrl' => [
+        'title' => 'Chatbot Begriffe',
+        'label' => 'title',
+        'tstamp' => 'tstamp',
+        'crdate' => 'crdate',
+        'cruser_id' => 'cruser_id',
+        'delete' => 'deleted',
+        'enablecolumns' => [
+            'disabled' => 'hidden',
+            'starttime' => 'starttime',
+            'endtime' => 'endtime',
+        ],
+        'searchFields' => 'chatbot_terms,chatbot_category,chatbot_subcategory,chatbot_url',
+        'iconfile' => 'EXT:begriffe/Resources/Public/Icons/book.png'
+    ],
+    'types' => [
+        '0' => [
+          'showitem' => '
+              --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,chatbot_type, chatbot_category, chatbot_subcategory,chatbot_terms, chatbot_url,
+              --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access, hidden, starttime, endtime'
+        ],
+    ],
+    'columns' => [
+        'hidden' => [
+            'exclude' => true,
+            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.visible',
+            'config' => [
+                'type' => 'check',
+                'renderType' => 'checkboxToggle',
+                'items' => [
+                    [
+                        0 => '',
+                        1 => '',
+                        'invertStateDisplay' => true
+                    ]
+                ],
+            ],
+        ],
+        'starttime' => [
+            'exclude' => true,
+            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.starttime',
+            'config' => [
+                'type' => 'input',
+                'renderType' => 'inputDateTime',
+                'eval' => 'datetime,int',
+                'default' => 0,
+                'behaviour' => [
+                    'allowLanguageSynchronization' => true
+                ]
+            ],
+        ],
+        'endtime' => [
+            'exclude' => true,
+            'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.endtime',
+            'config' => [
+                'type' => 'input',
+                'renderType' => 'inputDateTime',
+                'eval' => 'datetime,int',
+                'default' => 0,
+                'range' => [
+                    'upper' => mktime(0, 0, 0, 1, 1, 2038)
+                ],
+                'behaviour' => [
+                    'allowLanguageSynchronization' => true
+                ]
+            ],
+        ],
+
+        'chatbot_type' => [
+            'exclude' => true,
+            'label' => 'Typ',
+            'config' => [
+                'type' => 'select',
+                'renderType' => 'selectSingle',
+                'items' => [
+                    ['Auswählen', 0],
+                    ['Direct', 1],
+                    ['Medical', 2],
+                    ['Bewerbung', 3],
+                    ['Weiterbildung', 4],
+                    ['Reverse', 5],
+                    ['Middlewords', 6],
+                    ['Unknown', 7],
+                ],
+                'size' => 1,
+                'maxitems' => 1,
+                'eval' => ''
+            ],
+        ],
+        'chatbot_url' => [
+           'displayCond' => 'FIELD:chatbot_type:=:1',
+           'exclude' => true,
+           'label' => 'Link',
+           'config' => [
+               'type' => 'input',
+               'renderType' => 'inputLink',
+           ],
+       ],
+        'chatbot_category' => [
+            'displayCond' => 'FIELD:chatbot_type:=:5',
+            'exclude' => true,
+            'label' => 'Kategorie',
+            'config' => [
+                'type' => 'select',
+                'renderType' => 'selectSingle',
+                'items' => [
+                    ['Auswählen', 0],
+                    ['Ausbildung', 1], 
+                    ['Studium', 3],
+                    ['Studium', 4],
+                    ['Studium', 3],
+                ],
+                'size' => 1,
+                'maxitems' => 1,
+                'eval' => ''
+            ],
+        ],
+        'chatbot_subcategory' => [
+          //'displayCond' => 'FIELD:chatbot_type:=:5',
+          'exclude' => true,
+          'label' => 'Unterkategorie',
+          'config' => [
+              'type' => 'select',
+              'renderType' => 'selectSingle',
+              'items' => [
+                  ['Ausbildung', 0],
+                  ['Studium', 2],
+                  ['Adverbien', 3],
+                  ['Verben', 4],
+                  ['Substantiven', 5],
+                  ['Konjuktionen', 6],
+                  ['Pronomen', 7],
+                  ['Relativpronomen', 8],
+              ],
+              'size' => 1,
+              'maxitems' => 1,
+              'eval' => ''
+          ],
+      ],
+        'chatbot_terms' => [
+            'exclude' => true,
+            'label' => 'Begriffe Einfügen (Komma getrennt)',
+            'config' => [
+                'type' => 'text',
+                'cols' => 60,
+                'rows' => 150,
+                'eval' => 'trim',
+                'default' => ''
+            ]
+        ],
+        
+    
+    ],
+];

BIN
Extension.png


+ 0 - 0
README.md


BIN
Resources/Public/Icons/book.png


BIN
Resources/Public/Icons/graphic.png


+ 21 - 0
composer.json

@@ -0,0 +1,21 @@
+{
+  "name": "meramo/begriffmgt",
+  "license": "GPL-3.0",
+  "description": "Erweiterung um Chatbot Begriffe zu Verwalten",
+  "require": {
+    "php": ">=7.0.0",
+    "typo3/cms-core": "^8.7 || ^9.5 || ^10.4"
+  },
+  "type": "typo3-cms-extension",
+  "version": "dev-local",
+  "autoload": {
+    "classmap": [
+      "*"
+    ]
+  },
+  "extra": {
+    "typo3/cms": {
+      "extension-key": "begriffmgt"
+    }
+  }
+}

+ 19 - 0
ext_emconf.php

@@ -0,0 +1,19 @@
+<?php
+
+$EM_CONF['begriffmgt'] = [
+    'title' => 'Chatbot Begriffe Management',
+    'description' => 'Filterung für Chatbot Begriffe',
+    'category' => 'module',
+    'author' => 'Meramo Developer',
+    'author_email' => 'development@meramo.de',
+    'state' => 'alpha',
+    'clearCacheOnLoad' => 0,
+    'version' => '1.0.0',
+    'constraints' => [
+        'depends' => [
+            'typo3' => '10.4.0-10.4.99',
+        ],
+        'conflicts' => [],
+        'suggests' => [],
+    ],
+];

+ 5 - 0
ext_localconf.php

@@ -0,0 +1,5 @@
+<?php
+call_user_func( function()
+{
+  
+} );

+ 0 - 0
ext_tables.php


+ 7 - 0
ext_tables.sql

@@ -0,0 +1,7 @@
+CREATE TABLE tx_begriffmgt_domain_model_term (
+	chatbot_type VARCHAR(255) DEFAULT '' NOT NULL,
+	chatbot_category VARCHAR(255) DEFAULT '',
+  chatbot_subcategory VARCHAR(255) DEFAULT '',
+	chatbot_terms text NOT NULL DEFAULT '',
+	chatbot_url varchar(255) DEFAULT ''
+);