Commit bcfd72ac authored by Harry Glatz's avatar Harry Glatz

[INIT] Commit from T3org-Repo

parents
# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
charset = utf-8
# Get rid of whitespace to avoid diffs with a bunch of EOL changes
trim_trailing_whitespace = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
# CSS-Files
[*.css]
indent_style = space
indent_size = 4
# HTML-Files
[*.html]
indent_style = space
indent_size = 4
# TMPL-Files
[*.tmpl]
indent_style = space
indent_size = 4
# LESS-Files
[*.less]
indent_style = space
indent_size = 4
# JS-Files
[*.js]
indent_style = space
indent_size = 4
# PHP-Files
[*.php]
indent_style = space
indent_size = 4
# MD-Files
[*.md]
indent_style = space
indent_size = 4
# YML-Files
[*.yml]
indent_style = space
indent_size = 4
# package.json or .travis.yml
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
.idea/
/Resources/Private/.sass-cache/
/Resources/Private/node_modules/
/Resources/Public/Css/
/Resources/Public/JavaScript/
Order deny,allow
Deny from all
This diff is collapsed.
Order deny,allow
Deny from all
mod.wizards {
newContentElement {
wizardItems {
common {
elements {
ce_textwithteaser {
iconIdentifier = default-icon
title = Text with Teaser
description = Text with Teaser
tt_content_defValues {
CType = ce_textwithteaser
}
}
}
}
common.show = *
}
}
}
\ No newline at end of file
################################################
#### RTE BASICS ####
################################################
RTE.default {
contentCSS = typo3conf/ext/t3olayout/Resources/Public/Css/rte.css
}
###
### PageTS for t3olayout
###
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3olayout/Configuration/PageTS/RTE.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3olayout/Configuration/PageTS/TCEFORM.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3olayout/Configuration/PageTS/TCEMAIN.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3olayout/Configuration/PageTS/mod/WebLayout/BackendLayouts.txt">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3olayout/Configuration/PageTS/ElementWizard/ContentElements.txt">
#################
#### TCEFORM ####
#################
TCEFORM {
pages {
}
tt_content {
}
}
TCEMAIN {
}
\ No newline at end of file
########################
#### BACKENDLAYOUTS ####
########################
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:t3olayout/Configuration/PageTS/Mod/WebLayout/BackendLayouts" extensions="txt">
\ No newline at end of file
################################
#### BACKENDLAYOUT: DEFAULT ####
################################
mod {
web_layout {
BackendLayouts {
t3olayout_default {
title = LLL:EXT:t3olayout/Resources/Private/Language/locallang.xlf:backend_layout.default
config {
backend_layout {
colCount = 4
rowCount = 2
rows {
1 {
columns {
1 {
name = LLL:EXT:t3olayout/Resources/Private/Language/locallang.xlf:backend_layout.column.normal
colPos = 0
colspan = 4
}
}
}
2 {
columns {
1 {
name LLL:EXT:t3olayout/Resources/Private/Language/locallang.xlf:backend_layout.column.footer1
colPos = 82
colspan = 1
}
2 {
name LLL:EXT:t3olayout/Resources/Private/Language/locallang.xlf:backend_layout.column.footer2
colPos = 83
colspan = 1
}
3 {
name LLL:EXT:t3olayout/Resources/Private/Language/locallang.xlf:backend_layout.column.footer3
colPos = 84
colspan = 1
}
4 {
name LLL:EXT:t3olayout/Resources/Private/Language/locallang.xlf:backend_layout.column.footer4
colPos = 85
colspan = 1
}
}
}
}
}
}
icon = EXT:t3olayout/Resources/Public/Images/BackendLayouts/default.png
}
}
}
}
\ No newline at end of file
<?php
/**
* t3olayout Content Element | Text with Teaser
*/
/***************
* Register fields
*/
$ce_textwithteaser = array(
'bodytext_2' => array(
'l10n_mode' => 'prefixLangTitle',
'l10n_cat' => 'text',
'label' => 'Text',
'config' => $GLOBALS['TCA']['tt_content']['columns']['bodytext']['config'],
),
'linkname' => array(
'label' => 'Linkname (optional)',
'config' => $GLOBALS['TCA']['tt_content']['columns']['header']['config'],
),
'position' => array(
'exclude' => 0,
'label' => 'Position',
'config' => array(
'type' => 'select',
'renderType' => '',
'items' => array(
array(
'Right',
'right'
),
array(
'Left',
'left'
),
)
),
),
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $ce_textwithteaser);
/***************
* Add Content Element: textwithteaser
*/
if (!is_array($GLOBALS['TCA']['tt_content']['types']['ce_textwithteaser'])) {
$GLOBALS['TCA']['tt_content']['types']['ce_textwithteaser'] = [];
}
/***************
* Add content element to seletor list
*/
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTcaSelectItem(
'tt_content',
'CType',
[
'Text With Teaser',
'ce_textwithteaser',
'EXT:t3olayout/ext_icon.png'
],
'--div--',
'after'
);
/***************
* Assign Icon
*/
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes']['ce_textwithteaser'] = 'default-icon';
/***************
* Configure element type
*/
$GLOBALS['TCA']['tt_content']['types']['ce_textwithteaser'] = array_replace_recursive(
$GLOBALS['TCA']['tt_content']['types']['ce_textwithteaser'],
[
'showitem' => '
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.general;general,
position,header,bodytext,header_link,linkname,subheader, bodytext_2,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.appearance,
layout;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:layout_formlabel,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.appearanceLinks;appearanceLinks,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access,
hidden;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:field.default.hidden,
--palette--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.extended,
--div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category,categories
',
'columnsOverrides' => [
'bodytext' => ['defaultExtras' => 'richtext:rte_transform[mode=ts_css]'],
],
]
);
tt_content.ce_textwithteaser =< lib.default
tt_content.ce_textwithteaser {
templateName = Ce_textwithteaser
}
\ No newline at end of file
lib.default >
lib.default = FLUIDTEMPLATE
lib.default {
templateName = Default
templateRootPaths {
10 = EXT:t3olayout/Resources/Private/Templates/ContentElements/
}
partialRootPaths {
10 = EXT:t3olayout/Resources/Private/Partials/
}
layoutRootPaths {
10 = EXT:t3olayout/Resources/Private/Layouts/
}
}
\ No newline at end of file
################################################
#### DYNAMIC CONTENT LIB FOR USAGE IN FLUID ####
################################################
#
# EXAMPLE
# ---------------
# <f:cObject typoscriptObjectPath="lib.dynamicContent" data="{pageUid: '{data.uid}', colPos: '0', wrap: '<div class=\"hero\">|</div>'}" />
#
#
# COLUMN NUMBERS
# ---------------
#
# 0 = main
# 1 = left
# 2 = right
# 3 = border
#
#################
lib.dynamicContent = COA
lib.dynamicContent {
5 = LOAD_REGISTER
5 {
colPos.cObject = TEXT
colPos.cObject {
field = colPos
ifEmpty.cObject = TEXT
ifEmpty.cObject {
value.current = 1
ifEmpty = 0
}
}
pageUid.cObject = TEXT
pageUid.cObject {
field = pageUid
ifEmpty.data = TSFE:id
}
contentFromPid.cObject = TEXT
contentFromPid.cObject {
data = DB:pages:{register:pageUid}:content_from_pid
data.insertData = 1
}
wrap.cObject = TEXT
wrap.cObject {
field = wrap
}
}
20 = CONTENT
20 {
table = tt_content
select {
includeRecordsWithoutDefaultTranslation = 1
orderBy = sorting
where = colPos={register:colPos}
where.insertData = 1
pidInList.data = register:pageUid
pidInList.override.data = register:contentFromPid
}
stdWrap {
dataWrap = {register:wrap}
required = 1
}
}
90 = RESTORE_REGISTER
}
\ No newline at end of file
config {
absRefPrefix = auto
no_cache = {$config.no_cache}
uniqueLinkVars = 1
pageTitleFirst = 1
linkVars = L
prefixLocalAnchors = {$config.prefixLocalAnchors}
renderCharset = utf-8
metaCharset = utf-8
doctype = html5
removeDefaultJS = {$config.removeDefaultJS}
inlineStyle2TempFile = 1
admPanel = {$config.admPanel}
debug = 0
cache_period = 86400
sendCacheHeaders = {$config.sendCacheHeaders}
intTarget =
extTarget =
disablePrefixComment = 1
index_enable = 1
index_externals = 1
index_metatags = 1
headerComment = {$config.headerComment}
// Disable Image Upscaling
noScaleUp = 1
// Compression and Concatenation of CSS and JS Files
compressJs = 0
compressCss = 0
concatenateJs = 0
concatenateCss = 0
}
page{
10{
dataProcessing {
10 = t3o\t3olayout\DataProcessing\MenuProcessor
10 {
special.value.field = pages
levels = 2
as = menu
expandAll = 1
includeSpacer = 1
titleField = nav_title // title
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 {
references.fieldName = media
}
}
}
20 = t3o\t3olayout\DataProcessing\MenuProcessor
20{
special = directory
special.value = {$tx_t3olayout.page.metamenuid}
as = metanavigation
expandAll = 1
includeSpacer = 1
titleField = nav_title // title
dataProcessing {
10 = TYPO3\CMS\Frontend\DataProcessing\FilesProcessor
10 {
references.fieldName = media
}
}
}
}
}
}
page{
includeCSS {
t3olayout_layout = EXT:t3olayout/Resources/Public/Css/main.css
}
includeJSLibs {
t3olayout_libs = EXT:t3olayout/Resources/Public/JavaScript/libs.min.js
}
includeJSFooter {
t3olayout_scripts = EXT:t3olayout/Resources/Public/JavaScript/main.min.js
}
}
\ No newline at end of file
page{
meta {
viewport = {$page.meta.viewport}
robots = {$page.meta.robots}
google = {$page.meta.google}
apple-mobile-web-app-capable = {$page.meta.apple-mobile-web-app-capable}
description = {$page.meta.description}
description {
override.field = description
}
author = {$page.meta.author}
author {
override.field = author
}
keywords = {$page.meta.keywords}
keywords {
override.field = keywords
}
X-UA-Compatible = {$page.meta.compatible}
X-UA-Compatible {
attribute = http-equiv
}
# OpenGraph Tags
og:title {
attribute = property
field = title
}
og:site_name {
attribute = property
data = TSFE:tmpl|setup|sitetitle
}
og:description = {$page.meta.description}
og:description {
attribute = property
field = description
}
og:image {
attribute = property
stdWrap.cObject = FILES
stdWrap.cObject {
references {
data = levelfield:-1, media, slide
}
maxItems = 1
renderObj = COA
renderObj {
10 = IMG_RESOURCE
10 {
file {
import.data = file:current:uid
treatIdAsReference = 1
width = 1280c
height = 720c
}
stdWrap {
typolink {
parameter.data = TSFE:lastImgResourceInfo|3
returnLast = url
forceAbsoluteUrl = 1
}
}
}
}
}
}
}
}
\ No newline at end of file
######################
#### DEPENDENCIES ####
######################
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluid_styled_content/Configuration/TypoScript/Static/constants.txt">
##############################
#### FLUID STYLED CONTENT ####
##############################
styles {
templates {
layoutRootPath = EXT:t3olayout/Resources/Private/Layouts/ContentElements/
partialRootPath = EXT:t3olayout/Resources/Private/Partials/ContentElements/
templateRootPath = EXT:t3olayout/Resources/Private/Templates/ContentElements/
}
}
############
### PAGE ###
############
page {
fluidtemplate {
layoutRootPath = EXT:t3olayout/Resources/Private/Layouts/Page/
partialRootPath = EXT:t3olayout/Resources/Private/Partials/Page/
templateRootPath = EXT:t3olayout/Resources/Private/Templates/Page/
}
meta {
description =
author =
keywords =
viewport = width=device-width, initial-scale=1
robots = index,follow
apple-mobile-web-app-capable = no
compatible = IE=edge
}
tracking {
google {
trackingID =
anonymizeIp = 1
}
}
}
##############
### CONFIG ###
##############
config {
no_cache = 0
removeDefaultJS = 0
admPanel = 1
prefixLocalAnchors = all
headerComment = build by sitepackagebuilder.com
sendCacheHeaders = 1
}
###############
### PageIds ###
###############
tx_t3olayout.page.metamenuid =
\ No newline at end of file
######################
#### DEPENDENCIES ####
######################
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:fluid_styled_content/Configuration/TypoScript/Static/setup.txt">
################
#### HELPER ####
################
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:t3olayout/Configuration/TypoScript/Helper/DynamicContent.txt">
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:t3olayout/Configuration/TypoScript/Includes/">
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:t3olayout/Configuration/TypoScript/Ce_elements/">
##############
#### PAGE ####
##############
page = PAGE
page {
typeNum = 0
shortcutIcon = EXT:t3olayout/Resources/Public/Icons/favicon.ico
10 = FLUIDTEMPLATE
10 {
templateName = TEXT
templateName.stdWrap.cObject = CASE
templateName.stdWrap.cObject {
key.data = levelfield:-1, backend_layout_next_level, slide
key.override.field = backend_layout
pagets__t3olayout_default = TEXT
pagets__t3olayout_default.value = Default
default = TEXT
default.value = Default
}
templateRootPaths {
0 = EXT:t3olayout/Resources/Private/Templates/Page/
1 = {$page.fluidtemplate.templateRootPath}
}
partialRootPaths {
0 = EXT:t3olayout/Resources/Private/Partials/Page/
1 = {$page.fluidtemplate.partialRootPath}
}
layoutRootPaths {
0 = EXT:t3olayout/Resources/Private/Layouts/Page/
1 = {$page.fluidtemplate.layoutRootPath}
}
}
}
Base Sitepackage for the project T3olayout
==============================================================
Add some explanation here.
Order deny,allow
Deny from all
module.exports = function(grunt) {
'use strict';
require('load-grunt-config')(grunt);
};
/**
* Created by ry57 on 16.01.17.
*/
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<xliff version="1.0">