Skip to content

Commit

Permalink
Kennel defined
Browse files Browse the repository at this point in the history
  • Loading branch information
conpassione committed Oct 14, 2024
1 parent 68c8159 commit b43a5f2
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
defined('TYPO3') or die();

use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;

call_user_func(static function(): void {
ExtensionManagementUtility::addTcaSelectItemGroup(
'tt_content',
'CType',
'kennel',
'Wurfverwaltung',
'before:default'
);
});

// 'LLL:EXT:cpkm/Resources/Private/Language/locallang_db.xlf:contentwizard.kennel.groupLabel',
1 change: 1 addition & 0 deletions ContentBlocks/RecordTypes/Kennel/Assets/Icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 85 additions & 0 deletions ContentBlocks/RecordTypes/Kennel/EditorInterface.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: conpassione/kennel
typeName: conpassione-kennel
title: 'Kennel'
group: csbp
table: tx_cpkm_domain_model_kennel
labelField: k_name
sortField: title
security:
ignorePageTypeRestriction: true
prefixFields: false
fields:
- identifier: p_kennel
type: Palette
label: Zuchtstaette
description: Daten zur Zuchtstaette
fields:
- identifier: k_name
type: Text
required: true
max: 30
- identifier: k_status
type: Checkbox
renderType: checkboxToggle
default: 0
items:
- label: aktiv?
- identifier: k_show
type: Checkbox
renderType: checkboxToggle
default: 0
items:
- label: anzeigen?
- identifier: hidden
type: Checkbox
useExistingField: true
- identifier: k_variety
type: Checkbox
renderType: checkboxToggle
cols: 1
rows: 3
default: 0
items:
- label: '---'
value: 0
- label: 'Museau Normal'
value: 1
- label: 'Face Rase'
value: 2
- identifier: p_breeder
type: Palette
label: Züchter
description: Adresse der Zuchtstätte
fields:
- identifier: k_first_name
type: Text
max: 20
label: Vorname
- identifier: k_last_name
type: Text
max: 20
label: Nachname
- type: Linebreak
- identifier: k_address
type: Textarea
label: Adresse
max: 30
rows: 5
- type: Linebreak
- identifier: k_phone
type: Text
label: Phone
max: 20
- identifier: k_mobile
type: Text
label: Handy
max: 20
- type: Linebreak
- identifier: k_email
type: Text
label: E-Mail
max: 20
- identifier: k_web
type: Text
label: Web
size: 20
1 change: 1 addition & 0 deletions Resources/Public/ContentBlocks/conpassione/kennel

0 comments on commit b43a5f2

Please sign in to comment.