Hi, lange ist's her 🙂
Ich habe bei einem aktuellen Projekt 3 Content Bereiche gemapt, diese kann man auch über ext.Templates in ihrer Breite individuell anpassen, jetzt will ich natürlich je nach Auswahl die automatische Bildbreitenanpassung "anpassen".
Mein Basis-Content-Bereich sieht zum Beispiel so aus:
temp.content = COA
temp.content {
10 = HTML
10.value = <div class="content" id="content">
20 = CONTENT
20 {
table = tt_content
select {
where = colPos = 1
orderBy = sorting
languageField = sys_language_uid
}
}
30 = HTML
30.value = <div class="columns">
40 = HTML
40.value = <div class="column c-55pc right-border-column">
50 = CONTENT
50 {
table = tt_content
select {
where = colPos = 0
orderBy = sorting
languageField = sys_language_uid
}
}
60 = HTML
60.value = </div>
70 = HTML
70.value = <div class="column c-40pc">
80 = CONTENT
80 {
table = tt_content
select {
where = colPos = 2
orderBy = sorting
languageField = sys_language_uid
}
}
90 = HTML
90.value = </div>
100 = HTML
100.value = <div class="clear"></div>
110 = HTML
110.value = <div class="single-column">
120 = CONTENT
120 {
table = tt_content
select {
where = colPos = 3
orderBy = sorting
languageField = sys_language_uid
}
}
130 = HTML
130.value = </div>
990 = HTML
990.value = </div>
1000 = HTML
1000.value = </div>
}
kann ich da jetzt jeweils für 20, 50, 80 und 120 die Berechnung machen? Oder gibt es eventuell eine greifende If Abfrage, in der ich die colPos abfrage?
Kann mir bitte wer helfen?
Das Layout sieht per default so aus:
Spalte1: 100% Breite
--clear--
Spalte2: 50% | Spalte3: 40%
--clear--
Spalte3: 100% Breite