Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten Ansicht
  #1  
Alt 29.11.06, 09:50
Forum Zuschauer
 
Registriert seit: 29.11.06
Alter: 32
Beiträge: 3
Trennung von Beiträgen

Hallo zusammen,

bin neu bei Typo3 und arbeite mich gerade in das Programm ein. Für meine Beispielseite benutzte ich Styled Content und das Autoparser Plugin und das klappt soweit auch ganz gut. Nun versuche ich meine Contentblöcke aber visuell von einander zu trennen, quasi mit einer Linie o.ä. Dazu hab ich mir ne schöne grafik erstellt die da "textseperator.jpg" heisst.

Das ganze soll dann so aussehen :

|------------------|
| Content |
| Block 1 |
|------------------|
|------------------|
| textseperator.jpg |
|------------------|
|------------------|
| Content |
| Block 2 |
|------------------|

Kann ich das im Template bzw TypoScript irgendwie einstellen ?

Mein Template sieht zur Zeit so aus :
Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
#===TS:root-template:Setup===
config.simulateStaticDocuments = 0
config.tx_realurl_enable = 1

config.baseURL = {$baseURL}
[globalString = ENV:HTTP_HOST=ancient-village.com]
config.baseURL = {$baseURL}
[global]
#===TS:root-template:Setup===

# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
    # Read the template file:
content = FILE
content.file = fileadmin/template/main/template_1.html
    # Here we define which elements in the HTML that
    # should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
}
    # Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/main/
}


  # Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
NO.allWrap = <div class="menu1-level1-no"> | </div>
    # Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level1-act"> | </div>
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
NO.allWrap = <div class="menu1-level2-no"> | </div>
    # Enable active state and set properties:
ACT = 1
ACT.allWrap = <div class="menu1-level2-act"> | </div>
}


# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY

  # Substitute the ###menu_1### subpart with some example content:
subparts.menu_1 < temp.menu_1

  # Substitute the ###content### subpart with some example content:
subparts.content < styles.content.get

}

# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
    # Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
    # Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}


# Default PAGE object:
page = PAGE
page.typeNum = 0
#page.config.disableAllHeaderCode=1

# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate

# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

#page.text.10.dataWrap = <hr>

Das ganze muss ja irgendwie dann in "subparts.content" oder definiere ich das generell ?


Danke für die Hilfe.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Sponsored Links
  #2  
Alt 29.11.06, 15:23
Forum Zuschauer
 
Registriert seit: 29.11.06
Alter: 32
Beiträge: 3

Also, die Sache war dann doch einfacher als gedacht. Sollte jemand es wissen wollen :

tt_content.stdWrap.outerWrap = <div class="seperator">|</div>

und dann einfach im css "seperator" definieren.

Und falls sich jemand fragt: "was isn tt_content, sowat hab ich nicht", hab gelernt, das sobald man styled content benutzt, das man dann auch tt_content hat.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort


Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge anzufügen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

vB Code ist An.
Smileys sind An.
[IMG] Code ist An.
HTML-Code ist Aus.
Trackbacks are An
Pingbacks are An
Refbacks are An


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Vorgehensweise Trennung Layout / Inhalt- Newbie chillipowder TYPO3 4.x Fragen und Probleme 1 10.09.06 22:56
Trennung zwischen Menü Level 1 und 2 labskaus GMENU, HMENU, TMENU und Co. 2 15.08.06 15:40


Alle Zeitangaben in WEZ +1. Es ist jetzt 14:21 Uhr.


Powered by vBulletin® Version 3.6.8 Patch Level 2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Template-Modifikationen durch TMS