![]() |
| | LinkBack | Themen-Optionen | Thema durchsuchen | Thema bewerten | Ansicht |
|
#1
| |||
| |||
Hallo Also ich möchte das falls eine Spalte ( rechts ) kein Inhalt haben sollte ein bestimmter anderer Inhalt an der Stelle (rechts ) ausgegeben wird oder z.B. auch das automatisch der Inhalt der Spalte rechts von der Home Seite ausgegeben wird / bleibt.Habs mal so versucht , funkts aber nicht: Code: page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/templates/index.html
workOnSubpart = document
subparts.sub_content.select.orderBy = sorting
subparts.content < styles.content.get
subparts.links < styles.content.getLeft
subparts.rechts < styles.content.getRight
temp.content_right = COA
temp.content_right.10 < styles.content.getRight
temp.content_right.10.stdWrap.ifEmpty.cObject = CONTENT
temp.content_right.10.stdWrap.ifEmpty.cObject.table = tt_content
temp.content_right.10.stdWrap.ifEmpty.cObject.select.pidInList=196
temp.content_right.10.stdWrap.ifEmpty.cObject.select.orderBy = sorting
temp.content_right.10.stdWrap.ifEmpty.cObject.select.where = colPos=2
temp.content_right.10.stdWrap.ifEmpty.cObject.select.languageField = sys_language_uid
page.10.marks.rechts.10= CONTENT
page.10.marks.rechts.10 < temp.content_right Vielen Dank im voraus für jede Hilfe |
|
#2
| |||
| |||
Hallo darkdesire! Schau Dir doch mal die Extension: KB Content Slide (kb_cont_slide) an. Die koennte Dir evtl. weiterhelfen. Viel Glueck, µ |
|
#3
| |||
| |||
| moin, warum benutzt keiner die Suche Beitrag von mir; http://www.typo3forum.net/forum/typo...en-inhalt.html Armin
__________________ Nichts kommt von selbst, sogar eine Dummheit muss man erst machen. Tipps und Tricks zu TYPO3: http://typo3.intervation.de |
|
#4
| |||
| |||
| Hallo Armin Ich habe die Suche benutzt, den code den ich oben verwendet habe stammt von Dir, aber leider funkts das nicht bei mir und ich checks nicht ganz warum nicht. Wenn ich falsch gepostet habe dann entschuldige bitte. |
|
#5
| ||||
| ||||
| moin, bei dir müste das so heißen Typoscript-Code:
Und das subparts.rechts < styles.content.getRight kann weg. Armin
__________________ Nichts kommt von selbst, sogar eine Dummheit muss man erst machen. Tipps und Tricks zu TYPO3: http://typo3.intervation.de |
|
#6
| ||||
| ||||
| moin, bei muss das sollt es so gehen. Ändere den letzen Teil in: Typoscript-Code:
Und das subparts.rechts < styles.content.getRight solltest du entfernen Armin
__________________ Nichts kommt von selbst, sogar eine Dummheit muss man erst machen. Tipps und Tricks zu TYPO3: http://typo3.intervation.de |
|
#7
| |||
| |||
| Danke für die Hilfe, aber aus irgendeinem Grund funkts bei mir einfach nicht. wenn ich Code: subparts.rechts < styles.content.getRight Aber auf jeden Fall danke ich mal, werd wohl ne andere Lösung finden müssen. Gruss |
|
#8
| |||
| |||
| moin füge mal noch nimm mal bei subparts.rechts.10= CONTENT subparts.rechts.10 < temp.content_right die 10 jeweils raus. Armin
__________________ Nichts kommt von selbst, sogar eine Dummheit muss man erst machen. Tipps und Tricks zu TYPO3: http://typo3.intervation.de |
|
#9
| |||
| |||
| Hallo Vielen Dank für Deine Mühe es geht aber auch so nicht, und wenn ich die erste subparts.rechts < styles.content.getRight rausnehme wird auch auf den rechten spalte wo eigentlich content ist nichts mehr angezeigt.Ich geb noch mal den code durch Typoscript Code: page = PAGE
page.typeNum = 0
page.headerData.1 = TEXT
page.headerData.1.value = <link rel="stylesheet" type="text/css" href="fileadmin/templates/css/menu.css">
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/templates/index.html
workOnSubpart = document
subparts.sub_content.select.orderBy = sorting
subparts.content < styles.content.get
subparts.links < styles.content.getLeft
temp.content_right = COA
temp.content_right.10 < styles.content.getRight
temp.content_right.10.stdWrap.ifEmpty.cObject = CONTENT
temp.content_right.10.stdWrap.ifEmpty.cObject.table = tt_content
temp.content_right.10.stdWrap.ifEmpty.cObject.select.pidInList=199
temp.content_right.10.stdWrap.ifEmpty.cObject.select.orderBy = sorting
temp.content_right.10.stdWrap.ifEmpty.cObject.select.where = colPos=2
temp.content_right.10.stdWrap.ifEmpty.cObject.select.languageField = sys_language_uid
subparts.rechts= CONTENT
subparts.rechts < temp.content_right
subparts.header = IMAGE
subparts.header.file = fileadmin/templates/images/web.jpg
# Hauptmenu
subparts.menulinks = HMENU
subparts.menulinks.wrap = <div> | </div>
subparts.menulinks.1 = GMENU
subparts.menulinks.1.NO {
5 = IMAGE
5.file = menu0.gif
XY = 135,13
10 = IMAGE
backColor = #F7F7F7
transparentColor = #F7F7F7
10 = TEXT
10.text.field = title
10.offset = 15,10
10.fontColor = #000000
10.fontSize = 10
10.fontFile = t3lib/fonts/verdana.ttf
wrap = <table width=100 cellspacing=0 cellpadding=0><tr><td> | </td></tr></table>
}
subparts.MENU = HMENU
subparts.MENU.minItems = 5
subparts.MENU.maxItems = 5
subparts.MENU.1 = TMENU
subparts.MENU.1.NO {
allWrap = |*| <td width="120" height="20" bgcolor="black" nowrap> | </td> || <td width="120" height="20" bgcolor="#2f2714" nowrap> | </td> |*|
linkWrap = <center>|</center>
} HTML-Code: ###document### <div id="head"> </div> </div> <div id="header" style="position:absolute; left:20px; top:0px; width:950px; height:207px; z-index:1"> <!--###header###--> <!--###header###--> </div> <div id="nav" style="position:absolute; left:20px; top:208px; width:950px; height:30px; z-index:2"> <!--###nav###--> <!--###nav###--> </div> <div id="links" style="position:absolute; left:26px; top:453px; width:187px; height:182px; z-index:3"> <!--###links###--> <!--###links###--> </div> <div id="MENU" style="position:absolute; left:49px; top:247px; width:140px; height:200px; z-index:4"> <!--###MENU###--> <!--###MENU###--> </div> <div id="content" style="position:absolute; left:218px; top:238px; width:588px; height:400px; z-index:5"> <!--###content###--> <!--###content###--> </div> <div id="rechts" style="position:absolute; left:811px; top:238px; width:160px; height:400px; z-index:6" border="1"> <!--###rechts###--> <!--###rechts###--> </div> ###document### danke |
![]() |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
| |
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Anderer Menüstartpunkt wenn Menü leer | DasNom | TYPO3 4.x Fragen und Probleme | 0 | 01.07.08 11:08 |
| News in rechter Spalte anzeigen wenn sonst kein Content | huskarlar | News (tt_news, mininews und Co) | 3 | 24.06.08 11:20 |
| fi-clause -> record anzeigen nur, wenn content.get leer ist? | Duke | TYPO3 4.x Fragen und Probleme | 2 | 28.02.08 17:39 |
| Wenn Spalte leer festen Inhalt einfügen | tom613 | TYPO3 4.x Fragen und Probleme | 4 | 21.10.06 14:17 |
| Spalte auswrappen wenn Sie leer ist | illnino | TYPO3 3.x Fragen und Probleme | 1 | 02.05.05 13:36 |