Zum Inhalt springen

Linie nach Inhaltselement

Erstellt am 21. März 2006 · 6 Antworten · letzte Antwort am 22. März 2006

Tags: Inhaltselemente, Frage

Unbekannter Benutzer ·

mach für Deinen Inhalt
renderObj.stdWrap.wrap = <kommt vor jedes Content Element> | </kommt nach jedes Content Element>

und steuer es über css

alternativ kann man das auch als default Wert eintragen (über tsconfig) aber gescheiter ist so wie oben beschrieben.

Viele Grüße
Niki

alkusa ·

danke niki
da ich absoluter newbi bin hier meine TS Setup Code

kannst du mir mitteilen, wo ich deinen code einfügen muss, damit das funktioniert??

seite = PAGE
  seite {
     typeNum = 0
     bodyTag = <body bgcolor="#DCDCDC">
     stylesheet = fileadmin/css.css
     meta.AUTHOR = Kurt Althaus
     meta.DESCRIPTION = Intranet IZ

     10 = TEMPLATE
     10.template = FILE
     10.template.file = fileadmin/template.html
     10.workOnSubpart = DOKUMENT
     10.marks {
         LOGO = FILE
         LOGO.file = fileadmin/images/logo.gif
     
         ROOT = HMENU
             ROOT {
                  entryLevel = 0
                  special = rootline
                  special.range = 2|-1
                  1 = TMENU
                  wrap = Ich bin hier:   |
                  1.NO.allWrap =   |
              }

     MENU_OBEN = HMENU
     MENU_OBEN.special = directory
     MENU_OBEN.special.value = 32
     MENU_OBEN.1 = GMENU
     MENU_OBEN.1.NO = 1
     MENU_OBEN.1.NO {
            XY = 125, 21
            backColor = #0066FF
            5 = IMAGE
            5.file = fileadmin/images/biz19.gif     
             
            10 = TEXT
            10.text.field = title
            10.fontColor = #FFFFFF
            10.fontSize = 10
            10.offset = 4, 20
            }       
            

     MENU_LINKS = HMENU
     MENU_LINKS.special = directory
     MENU_LINKS.special.value = 33
     MENU_LINKS.entryLevel = 1
     MENU_LINKS.1 = GMENU
     MENU_LINKS.1.NO = 1
     MENU_LINKS.1.NO {
            wrap = |<br />
            XY = 170, 25
            backColor = #0066FF

           10 = TEXT
           10.text.field = title
           10.fontColor = #FFFFFF
           10.fontSize = 11
           10.niceText = 0
           10.offset = 8, 15

           20 = IMAGE
           20.file = GIFBUILDER
           20.file {
               XY = 169, 1
               backColor = #FFFFFF
           }
           20.offset = 1, 24
           }
           MENU_LINKS.1.RO < .MENU_LINKS.1.NO
           MENU_LINKS.1.RO.backColor = #6699FF

           MENU_LINKS.1.CUR < .MENU_LINKS.1.RO

           MENU_LINKS.2 < .MENU_LINKS.1
           MENU_LINKS.2 {
               NO.backColor = #DCDCDC
               NO.10.fontColor = #0066FF
               NO.10.offset = 25, 15
               NO.20.file.backColor = #FFFFFF
               RO < .NO
               RO.backColor = #CCCCCC
               RO.5 >
               CUR < .RO
            }
 CONTENT = CONTENT
 CONTENT {
 table = tt_content
 select.orderBy = sorting
 select.where = colPos = 0
  }
  }
}
Unbekannter Benutzer ·

CONTENT.renderObj.std.... etc.

evtl. das ganze Content Modul noch umschreiben:

CONTENT = CONTENT
CONTENT < styles.content.get
CONTENT.renderObj.stdWrap.wrap = .......

vorher noch statische Templates einbinden ... "click here to edit whole template record", z.B. content(default) + cSet stylesheet

Viele Grüße
Niki

alkusa ·

danke
habe das eingefügt. sieht nun so aus:

 CONTENT = CONTENT
 CONTENT < styles.content.get
 renderObj.stdWrap.wrap = <> | </>
 CONTENT {
 table = tt_content
 select.orderBy = sorting
 select.where = colPos = 0
  }

jedoch macht es keine linie nach dem seiteninhalt. scheint noch was zu fehlen!!

das statische template content(default) ist schon eingebunden

Unbekannter Benutzer ·

CONTENT = CONTENT
CONTENT < styles.content.get

sehr schön!

renderObj.stdWrap.wrap = <> | </>

guck doch mal was ich geschrieben habe ... so sah das nicht aus ... da war noch ein CONTENT davor.

CONTENT {
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}

Raus damit ... damit überschreibst Du doch wieder alles, was Du vorher gemacht hast.

Viele Grüße
Niki

P.S.: Statische Templates nicht vergessen.

alkusa ·

danke niki für deine geduld... meine ist jetzt dann gleich zu ende 😢
bin wahrscheinlich zu doof für typo3.

habe jetz den code wie folgt eingegeben:

 CONTENT = CONTENT
 CONTENT < styles.content.get
 CONTENT.renderObj.stdWrap.wrap =  <> | </>

das resultat entspricht nicht unbedingt dem, was ich erhoft habe.

Bild: img85.imageshack.us/…/klammern2jk.jpg

wie du siehst, erhalte ich jetzt vor den datum zwei klammern. ich möchte aber nach dem inhalt eine linie

hab ich erneut was falsch gemacht, oder was vergessen???

das statische template "cSet stylesheet" hab ich nicht eingebunden, da es mir alle formatierungen zerschiesst. könnte es daran liegen??? wird dieses template benötigt??
wenn ja, wie kann ich nach dem einbinden meine formatierungen (schriftgrösse etc.) wieder herstellen

du siehst, ich bin ziemlich am anschlag. meine seite funzt eigentlich recht gut, aber diese blöde linie bringt mich noch zum wahnsinn #angry#