########################
#### Templa Voila ######
########################

page = PAGE
page.typeNum = 0
#page.10 = USER
#page.10.userFunc = tx_templavoila_pi1->main_page
#plugin.tx_templavoila_pi1.disableExplosivePreview = 1
#page.10.disableExplosivePreview = 1

########################
#### Statische URLS ####
########################

#simulateStaticDocuments = 1
#simulateStaticDocuments_noTypeIfNoTitle = 1
#simulateStaticDocuments_pEnc = md5
#simulateStaticDocuments_pEnc_onlyP = L

#############################
#### REAL URL #######
#############################

config{
simulateStaticDocuments = 0
tx_realurl_enable = 1
prefixLocalAnchors = all
no_cache = 0
admPanel = 1
enable.cache = 1
}
#############################
#### Base Config #######
#############################

config.baseURL = {$baseUrl}

config {
linkVars = L
uniqueLinkVars = 1
renderCharset = utf-8
metaCharset = utf-8
enableContentLengthHeader = 1
sendCacheHeaders = 1
doctype = xhtml_trans
#  xmlprologue = none
htmlTag_langKey = de
#htmlTag_dir = ltr
removeDefaultJS = external
debug = 0
locale_all = de
sword_standAlone = 0
sword_noMixedCase = 0
intTarget = _self
extTarget = _blank
########################################
#### EMAil Link Spam Protection ########
########################################
spamProtectEmailAddresses = 2
spamProtectEmailAddresses_atSubst = (@) 
#spamProtectEmailAddresses_lastDotSubst = .

noScaleUp = 1
no_cache = 0
additionalHeaders = Content-Type:text/html;charset=utf-8
#  stat =
#  stat_apache =
#  stat_apache_logfile =
#  stat_mysql =
#  stat_excludeBEuserHits =
#  stat_excludeIPList =
#  stat_apache_pagenames =
#  stat_apache_notExtended =
#  stat_apache_noHost =
#  stat_titleLen =
content_from_pid_allowOutsideDomain = 1
pageTitleFirst = 1
headerComment = Produktion: dipool Werbeagentur
language = de
sys_language_uid =
sys_language_mode = content_fallback
sys_language_overlay = hideNonTranslated
simulateStaticDocuments = 0
admPanel = 0
index_enable = 1
index_externals = 0
index_metatags = 0
xhtml_cleaning = all
# kommentare deaktivieren ###
disablePrefixComment = 1
}

# MSIE soll nicht im Quirks-Modus arbeiten
[browser = msie]
config.doctype = xhtml_trans
config.doctypeSwitch = 1
xmlprologue = none
[GLOBAL]

# MSIE soll nicht im Quirks-Modus arbeiten
[browser = msie]
config.doctypeSwitch = 1
[GLOBAL]

content.RTE_compliant = 1

#page.config.metaCharset = utf-8

# multiple Imagecaptions are possible in ce “image” and “text/image”
styles.content.imgtext.captionSplit=1

####################################################################
#### Metatags
####################################################################

page.meta{
keywords.data = levelfield: -1,keywords,slide
keywords.ifEmpty={$meta.keywords}
description.data = levelfield: -1,description,slide
description.ifEmpty={$meta.description}
robots = INDEX,FOLLOW
language = {$meta.lang}
}

###################################################
## Changes to CSS styled content
## to fit the needs for YAML
###################################################

RTE.config.tt_content.bodytext.types.text.proc.overruleMode = none

lib.parseFunc_RTE {
nonTypoTagStdWrap.encapsLines {
# remove ‘class=bodytext’ in P-tags
addAttributes.P.class =
}
}

tt_content.stdWrap {
innerWrap2 = {$pageLinkToTopStandardLang}
}
# Language-specific settings first foreign language:
[globalVar = GP:L = {$firstForeignLanguage}]
lib.stdheader.5.date = n/j/Y
tt_content.stdWrap.innerWrap2 = {$pageLinkToTopFirstLang}
[global]

# Language-specific settings second foreign language:
[globalVar = GP:L = {$secondForeignLanguage}]
lib.stdheader.5.date = j.n.Y
tt_content.stdWrap.innerWrap2 = {$pageLinkToTopSecondLang}
[global]
# Remove target for content element filelist

tt_content.uploads.20.linkProc.target >

#############################
#### Laguage Config #########
#############################

# defining the default language
config.sys_language_uid = 0
config.language = de
config.locale_all = de_DE.UTF8

# German language, sys_language.uid = 0
[globalVar = GP:L = 0]
config.sys_language_uid = 0
config.language = de
config.locale_all = de_DE.UTF8
#config.htmlTag_langKey = de
[global]

# Setting up the language variable “L” to be passed along with links
config.linkVars = L
# Ermöglicht die Darstellung von Übersetzungen im Frontend.
# Alternativ hierzu kann auch hideNonTranslated angegeben.
# Dann werden Inhalte, die nicht übersetzt wurden, nicht angezeigt.
config.sys_language_overlay = 1

#tt_content.text.wrap = <div>|</div>
#tt_content.textpic.wrap = <div>|</div>

# line breaks in headers possible
lib.stdheader.10.stdWrap.brTag = <br />

lib.stdheader {
# currentValue is set to the header data, possibly wrapped in link-tags.
10 = CASE
10.setCurrent {
field = header
htmlSpecialChars = 1
typolink.parameter.field = header_link
}
10.key.field = header_layout
10.key.ifEmpty = {$content.defaultHeaderType}
10.key.ifEmpty.override.data = register: defaultHeaderType

10.1 = TEXT
10.1.current = 1
10.1.insertData = 1
10.1.fontTag = <h2{register:headerStyle}{register:headerClass}>|</h2>

10.2 < .10.1
10.2.fontTag = <h3{register:headerStyle}{register:headerClass}>|</h2>

10.3 < .10.1
10.3.fontTag = <h4{register:headerStyle}{register:headerClass}>|</h4>

10.4 < .10.1
10.4.fontTag = <h5{register:headerStyle}{register:headerClass}>|</h5>

10.5 < .10.1
10.5.fontTag = <h1{register:headerStyle}{register:headerClass}>|</h1>
}

temp.styles.content.get3 < styles.content.get
temp.styles.content.get3.select.where = colPos = 3

styles.content.get4 < styles.content.get
styles.content.get4.select.where = colPos = 4

styles.content.get5 < styles.content.get
styles.content.get5.select.where = colPos = 5

styles.content.get4and5 = COA
styles.content.get4and5{
wrap = <div>|</div>
10 < styles.content.get4
10.wrap = <div><div>|</div></div>
20 < styles.content.get5
20.wrap = <div><div>|</div></div>
}

styles.content.get6 < styles.content.get
styles.content.get6.select.where = colPos = 6

#styles.content.get7 < styles.content.get
#styles.content.get7.select.where = colPos = 7

####################################
# shows content in columns
####################################

tt_content.stdWrap{
outerWrap.cObject =CASE
outerWrap.cObject{
key.field=colPos
3=TEXT
3.value = |###SPLITTER###
}
}

styles.content.get3 = COA
styles.content.get3 {
wrap= <div>|</div>
10 = COA
10{
if{
isTrue.numRows{
table = tt_content
select.orderBy = sorting
select.where = colPos=3
}
}
10 = COA
10{
if{
## shown when beLayout is active and column is filled
isInList.dataWrap = {register:layoutId}
value = 18
}
#wrap = <div>|</div>
10 = COA
10{
10 < temp.styles.content.get3
stdWrap.split {
token = ###SPLITTER###
cObjNum = |*| 1 || 2 |*|
1.current = 1
1.wrap = <div><div><div>|</div></div>
2.current = 1
2.wrap = <div><div>|</div></div></div>
}
}
}
20 = COA
20{
if{
## shown when beLayout is active and column is filled
isInList.dataWrap = {register:layoutId}
value = 17
}
#wrap = <div>|</div>
10 = COA
10{
10 = COA
10{
10 < temp.styles.content.get3
stdWrap.split {
token = ###SPLITTER###
cObjNum = |*| 1 || 2 || 3 |*|
1.current = 1
1.wrap = <div><div>|</div></div>
2.current = 1
2.wrap = <div><div>|</div></div>
3.current = 1
3.wrap = <div><div>|</div></div>###SPLITTER2###
}
}
20 = COA
20{
if{
value=1,4,7,10,13,16,19,22,25,28,31
isInList.data = register:SPLIT_COUNT
}
#10 = TEXT
#10.value = <div><div></div></div>
20 = TEXT
20.value = <div><div></div></div>
}
stdWrap.split{
token = ###SPLITTER2###
cObjNum = |*| 1 |*|

1.current = 1
1.required = 1
1.wrap = <div>|</div>
}
}

}
30 = COA
30{
if{
## shown when beLayout is active and column is filled
isInList.dataWrap = {register:layoutId}
value = 16
}
#wrap = <div>|</div>
10 = COA
10{
10 = COA
10{
10 < temp.styles.content.get3
stdWrap.split {
token = ###SPLITTER###
cObjNum = |*| 1 || 2 || 3 || 4 |*|
1.current = 1
1.required = 1
1.wrap = <div><div>|</div></div>
2.current = 1
2.required = 1
2.wrap = <div><div>|</div></div>
3.current = 1
3.required = 1
3.wrap = <div><div>|</div></div>
4.current = 1
4.required = 1
4.dataWrap = <div><div>|</div></div>###SPLITTER2###
}
}
20 = COA
20{
10 = COA
10{
if{
value=1,5,9,13,17,21,25,29,33,37,41
isInList.data = register:SPLIT_COUNT
}
10 = TEXT
10.value = <div><div></div></div>
20 = TEXT
20.value = <div><div></div></div>
30 = TEXT
30.value = <div><div></div></div>
}
20 = COA
20{
if{
value=2,6,10,14,18,22,26,30,34,38,42
isInList.data = register:SPLIT_COUNT
}
10 = TEXT
10.value = <div><div></div></div>
20 = TEXT
20.value = <div><div></div></div>
}
30 = COA
30{
if{
value=3,7,11,15,19,23,27,31,35,39,43
isInList.data = register:SPLIT_COUNT
}
10 = TEXT
10.value = <div><div></div></div>
}
}

stdWrap.split{
token = ###SPLITTER2###
cObjNum = |*| 1 |*|

1.current = 1
1.required = 1
1.wrap = <div>|</div>
}
}
}
}

}

page{
1=LOAD_REGISTER
1{
layoutId.cObject = COA
layoutId.cObject{
10 = TEXT
10.data = levelfield:-1,backend_layout
10.if.isTrue.data = levelfield:-1,backend_layout

20 = TEXT
20.data = levelfield:-2,backend_layout_next_level,slide
20.if.isFalse.data= levelfield:-1,backend_layout
}
}
2=LOAD_REGISTER
2{
bodyClass.cObject = COA
bodyClass.cObject{
10 = TEXT
10.dataWrap = uid{field:uid}
10.noTrimWrap = | |
20 = COA
20{
10 = COA
10{
if{
isTrue = {$baseConf.addSubNav}
}
10 = TEXT
10.value = subNav
10.stdWrap.if{
equals.data = level: 1
value=1
isTrue.numRows{
table = pages
select{
pidInList.data = leveluid:1
where = NOT hidden AND NOT deleted AND NOT nav_hide

}
isTrue = {$baseConf.addSubNavClassAtLevel0}

}
}
15 = TEXT
15.value = subNav
15.if{
isGreaterThan.data = level: 1
value=1
}
}

30 = TEXT
30.stdWrap.if{
isInList.dataWrap = {register:layoutId}
value = 1,8,11
isTrue{
numRows{
table = tt_content
select.orderBy = sorting
select.where = colPos=2
}
}
}
30.value = colRight
}
}
}
}

page{
bodyTagCObject = COA
bodyTagCObject{
10 = TEXT
10.dataWrap(
<!–[if lt IE 7 ]><body><![endif]–>
<!–[if IE 7 ]><body><![endif]–>
<!–[if IE 8 ]><body><![endif]–>
<!–[if IE 9 ]><body><![endif]–>
<!–[if !(IE)]><!–><body><!–<![endif]–>
)
}

}
#################################
#### STYLES & FAVICON     #######
#################################

page.headerData.1 = TEXT
page.headerData.1.dataWrap(
<!–[if IE ]><link type=”text/css” href=”{$skinPath}css/yaml/core/slim_iehacks.css” rel=”stylesheet”/><![endif]–>
<!–[if lt IE 7 ]><!–><link href=”{$skinPath}css/patches/ltIE7.css” rel=”stylesheet” type=”text/css”><!–<![endif]–>
<link type=”text/css” href=”{$skinPath}css/styles.css” rel=”stylesheet”/>
<link rel=”shortcut icon” href=”{$skinPath}images/favicon.ico”/>
)

lib{
parseFunc_RTE {
nonTypoTagStdWrap {
encapsLines {
# Umschreiben veralteter Tags in den xHTML-Standard
remapTag.B = STRONG
remapTag.I = EM
# <DIV>-Tags (z.B. per Copy-and-Paste) zu Absaetzen wandeln
RemapTag.DIV = P
# CSS-Klasse “bodytext”aus Absaetzen entfernen
addAttributes.P.class >
}
# xHTML-konformes “Remapping”
HTMLparser.tags {
b.remap = strong
i.remap = em
}
}
}
}

##################################
# add file extension to file-links
##################################

lib.parseFunc_RTE.tags.link.typolink.ATagParams.cObject = COA
lib.parseFunc_RTE.tags.link.typolink.ATagParams.cObject {

5 = LOAD_REGISTER
5.int_allParams = TEXT
5.int_allParams {
data = parameters : allParams
split {
token.char = 32
cObjNum = 1 |*| 2 |*| 2
1 {
1 = LOAD_REGISTER
1.int_url.current = 1
1.int_url.dataWrap = |
}
}
}
10 = CASE
10 {
key.data = register : int_url
key.crop = -3
key.case = lower

#default = TEXT
#default.value =

# Extension pdf
pdf = TEXT
pdf.value =

# Extension pdf
doc = TEXT
doc.value =

# Extension wmv
wmv = TEXT
wmv.value =

}
}
##################################
# add file ext to OL/UL – lists
##################################
lib.parseFunc_RTE.externalBlocks.ul.stdWrap.parseFunc.tags.link < lib.parseFunc_RTE.tags.link
lib.parseFunc_RTE.externalBlocks.ol.stdWrap.parseFunc.tags.link < lib.parseFunc_RTE.tags.link

##################################
# avoid p Tags in Table cells when not needed
##################################
lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default >
lib.parseFunc_RTE.externalBlocks.table.HTMLtableCells.default.stdWrap.parseFunc =< lib.parseFunc

# selected Table classes will only be rendered, if this is set!
lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class.list >

#lib.parseFunc_RTE.externalBlocks.table.stdWrap.HTMLparser.tags.table.fixAttrib.class.list =contentable

##################################
## Short Tags
##################################
lib.parseFunc_RTE.short {
typo3 = TYPO3
Typo3 = TYPO3
}
lib.parseFunc_RTE.tags.link.parseFunc.short < lib.parseFunc_RTE.short

Advertisements