Hallo zusammen,
ich habe das Problem (TYPO3 Version ist 7.6.11), dass das Hintergrundbild aus der ext:backgroundimage in der englischen Sprache nicht erscheint, ihre Parameter (z.B background-repeat etc.) dagegen schon.
Mit folgendem TS werden die Einzelseite zu einem Onepages zusammengefügt:
lib.sectionContent = HMENU
lib.sectionContent {
special = rootline
special.range = 1|-1
1 = TMENU
1 {
NO = 1
NO {
doNotLinkIt = 1
# stdWrap >
stdWrap {
cObject = COA
cObject {
10 = COA
10 {
5 = TEXT
5.noTrimWrap = |<section ||
10 < temp.titleSectionId
10.wrap = id="|"
20 = COA
20 {
if.isTrue.field = tx_backgroundimage_active
5 = TEXT
5.value = style="
10 = FILES
10 {
references {
table = pages
data = levelmedia:-1, slide
uid.field = uid
fieldName = tx_backgroundimage
languageField = sys_language_uid
}
maxItems = 1
renderObj = IMG_RESOURCE
renderObj {
file.import.data = file:current:uid
file.treatIdAsReference = 1
stdWrap.wrap = background-image: url('|');
}
}
20 = TEXT
20 {
required = 1
wrap = background-repeat:|;
field = tx_backgroundimage_repeat
}
30 = TEXT
30 {
required = 1
wrap = background-color:|;
field = tx_backgroundimage_color
}
40 = TEXT
40 {
required = 1
wrap = background-position:|;
field = tx_backgroundimage_position
}
50 = TEXT
50 {
required = 1
wrap = background-size:|;
field = tx_backgroundimage_size
}
60 = TEXT
60 {
required = 1
wrap = background-attachment:|;
field = tx_backgroundimage_attachment
}
100 = TEXT
100.value = "
}
# remove bg from first section
20.if.value.data = register:count_menuItems
20.if.equals = 1
20.if.negate = 1
30 < lib.layoutswitch
40 = TEXT
40.value = >
}
15 = TEXT
15 {
wrap = <h1 class="sectiontitle">|</h1>
field = title
}
20 = CONTENT
20 {
wrap = <div class="container">|</div>
table = tt_content
select {
pidInList.field = uid
# damit es mit gridelements funktioniert:
andWhere.dataWrap = tx_gridelements_container=0
orderBy = sorting
languageField = sys_language_uid
}
renderObj =< tt_content
}
30 = TEXT
30 {
wrap = </section>
}
}
}
}
CUR = 1
CUR < .NO
}
2 < .1
}
Die Ausgabe sieht dann im englischen z.B. wie folgt aus:
<section id="arrival" style="background-position:bottom;background-attachment:fixed;" class="default">
…
</section>
Möglicherweise müsste man eine select-Query im TS bauen. Da ich kein Entwickler bin, hoffe ich sehr auf eure Hilfe.
Vielleicht habt Ihr eine Idee? Oder sogar eine select-Abfrage, die funktionieren würde?
Besten Dank!
Viele Grüße, André