Skip to content

Commit

Permalink
Added und updated files needed for a demo site package extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Karionis committed Jul 10, 2022
1 parent d79b361 commit e73e7fb
Show file tree
Hide file tree
Showing 42 changed files with 1,208 additions and 23 deletions.
55 changes: 55 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

# TS/JS-Files
[*.{ts,js}]
indent_size = 2

# JSON files
[*.json]
indent_style = tab

# package.json
[package.json]
indent_size = 2

# ReST files
[*.rst]
indent_size = 3
max_line_length = 80

# SQL files
[*.sql]
indent_style = tab
indent_size = 2

# TypoScript files
[*.{typoscript,tsconfig}]
indent_size = 2

# YAML files
[{*.yml,*.yaml}]
indent_size = 2

# XLF files
[*.xlf]
indent_style = tab

# .htaccess
[.htaccess]
indent_style = tab

# Markdown files
[*.md]
max_line_length = 80
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/Documentation export-ignore
/Tests export-ignore
/.* export-ignore
/ExtensionBuilder.json export-ignore
26 changes: 3 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
## TYPO3 v6.2
# Ignore several upload and file directories.
/fileadmin/user_upload/
/fileadmin/_temp_/
/fileadmin/_processed_/
/uploads/
# Ignore cache
/typo3conf/temp_CACHED*
/typo3conf/temp_fieldInfo.php
/typo3conf/deprecation_*.log
/typo3conf/ENABLE_INSTALL_TOOL
/typo3conf/realurl_autoconf.php
/FIRST_INSTALL
# Ignore system folders, you should have them symlinked.
# If not comment out the following entries.
/typo3
/typo3_src
/typo3_src-*
/Packages
/.htaccess
/index.php
# Ignore temp directory.
/typo3temp/
.Build/
.idea/
composer.lock
106 changes: 106 additions & 0 deletions Configuration/ExtensionBuilder/settings.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
#
# Extension Builder settings for extension typo3training
# generated 2022-07-08T22:23:53Z
#
# See http://www.yaml.org/spec/1.2/spec.html
#

---

############# Overwrite settings ###########
#
# These settings only apply, if the roundtrip feature of the extension builder
# is enabled in the extension manager
#
# Usage:
# nesting reflects the file structure
# a setting applies to a file or recursive to all files and subfolders
#
# merge:
# means for classes: All properties ,methods and method bodies
# of the existing class will be modified according to the new settings
# but not overwritten
#
# for locallang xlf files: Existing keys and labels are always
# preserved (renaming a property or DomainObject will result in new keys and new labels)
#
# for other files: You will find a Split token at the end of the file
# see: \EBT\ExtensionBuilder\Service\RoundTrip::SPLIT_TOKEN
#
# After this token you can write whatever you want and it will be appended
# everytime the code is generated
#
# keep:
# files are never overwritten
# These settings may break the functionality of the extension builder!
# Handle with care!
#

############# Extension settings ###########

overwriteSettings:
Classes:
Controller: merge
Domain:
Model: merge
Repository: merge

Configuration:
#TCA merge not possible - use overrides directory
#TypoScript: keep

Resources:
Private:
#Language: merge
#Layouts: keep
#Partials: keep
#Templates: keep
Backend:
#Layouts: keep
#Partials: keep
#Templates: keep

user_extension.svg: keep
# ext_localconf.php: merge
# ext_tables.php: merge
# ext_tables.sql: merge

## add declare strict types in php files
declareStrictTypes: true

## use static date attribute in xliff files
#staticDateInXliffFiles: '2022-07-08T22:23:53Z'

## skip docComment (license header)
#skipDocComment: false

## list of error codes for warnings that should be ignored
#ignoreWarnings:
#503

############# settings for classBuilder #######################
#
# here you may define default parent classes for your classes
# these settings only apply for new generated classes
# you may also just change the parent class in the generated class file.
# It will be kept on next code generation, if the overwrite settings
# are configured to merge it
#
#################################################################

classBuilder:

Controller:
parentClass: \TYPO3\CMS\Extbase\Mvc\Controller\ActionController

Model:
AbstractEntity:
parentClass: \TYPO3\CMS\Extbase\DomainObject\AbstractEntity

AbstractValueObject:
parentClass: \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject

Repository:
parentClass: \TYPO3\CMS\Extbase\Persistence\Repository

setDefaultValuesForClassProperties: true
4 changes: 4 additions & 0 deletions Configuration/TCA/Overrides/sys_template.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php
defined('TYPO3_MODE') || die();

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('typo3training', 'Configuration/TypoScript', 'TYPO3Training');
1 change: 1 addition & 0 deletions Configuration/TsConfig/BackendLayouts.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<INCLUDE_TYPOSCRIPT: source="DIR: ./BackendLayouts">
48 changes: 48 additions & 0 deletions Configuration/TsConfig/BackendLayouts/Default.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
mod.web_layout.BackendLayouts {
Default {
title = Standard
icon = EXT:example_extension/Resources/Public/Images/BackendLayouts/default.gif
config {
backend_layout {
colCount = 3
rowCount = 3
rows {
1 {
columns {
1 {
name = Kopfzeile
colspan = 3
colPos = 10
}
}
}
2 {
columns {
1 {
name = Inhalt 1.1
colspan = 3
colPos = 100
}
}
}
3 {
columns {
1 {
name = Fußzeile 1.1
colPos = 1000
}
2 {
name = Fußzeile 1.2
colPos = 1100
}
3 {
name = Fußzeile 1.3
colPos = 1200
}
}
}
}
}
}
}
}
64 changes: 64 additions & 0 deletions Configuration/TsConfig/BackendLayouts/Homepage.tsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
mod.web_layout.BackendLayouts {
Homepage {
title = Homepage
icon = EXT:example_extension/Resources/Public/Images/BackendLayouts/default.gif
config {
backend_layout {
colCount = 3
rowCount = 4
rows {
1 {
columns {
1 {
name = Kopfzeile
colspan = 3
colPos = 10
}
}
}
2 {
columns {
1 {
name = Inhalt 1.1
colPos = 100
}
2 {
name = Inhalt 1.2
colPos = 110
}
3 {
name = Inhalt 1.3
colPos = 120
}
}
}
3 {
columns {
1 {
name = Inhalt 2.1
colspan = 3
colPos = 200
}
}
}
4 {
columns {
1 {
name = Fußzeile 1.1
colPos = 1000
}
2 {
name = Fußzeile 1.2
colPos = 1100
}
3 {
name = Fußzeile 1.3
colPos = 1200
}
}
}
}
}
}
}
}
9 changes: 9 additions & 0 deletions Configuration/TypoScript/Setup/0010_config.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
config {
# zuerst Seitentitel, dann Sitename mit Bindestrich anfügen
pageTitleFirst = 1
pageTitleSeparator = -
pageTitleSeparator.noTrimWrap = | | |

// ausführliche Fehlermeldungen
contentObjectExceptionHandler = 0
}
7 changes: 7 additions & 0 deletions Configuration/TypoScript/Setup/0500_news.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugin.tx_news {
view {
templateRootPaths {
10 = EXT:typo3training/Resources/Private/Templates
}
}
}
Loading

0 comments on commit e73e7fb

Please sign in to comment.