Zum Inhalt springen

wie Content definieren und plazieren

Erstellt am 18. März 2004 · 42 Antworten · letzte Antwort am 28. Juli 2005 · Seite 2 von 3

Tags: Templates & Layouts, Inhaltselemente, Frage

Brinkerami ·

Bei mir funktioniert es so:

Im HTML-Template einen Marker einfügen, idealerweise in einer Tabelle (###INHALT_RE###). Dann im setup der Root-page Folgendes eintragen:

seite.typeNum = 0
seite.20 = TEMPLATE
seite.20 {
template = FILE
template.file = fileadmin/transplantation/main_tx.htm
workOnSubpart = DOKUMENT

### Inhalt rechte Spalte ###

marks.INHALT_RE = CONTENT
marks.INHALT_RE {
table = tt_content
select {
pidInList = 388 ###=id der Seite mit dem darzustellenden Inhalt
orderBy = sorting
}
}

...und schon wird auf der gesamten Homepage in der rechten Spalte der Inhalt der Seite mit id=388 dargestellt.

Vielleicht hilft's ja weiter.

ab_deddy ·
tipp doch mal einfach einen code ein ->in das code feld....... 
dann wirste es schon sehen......

Ich denke mal, daß ich dies auf der News-Seite im Page-Content Plugin=News
CODE = LIST
STARTINGPOINT = NEWS
eingeben muß, laut der Anleitung.
Alles hab ich so gemacht, wo soll denn noch CODE hin??

ab_deddy ·

Danke, das wars. News wieder rausgehaut und den
Vorschlag von Brinkerami genommen.
Alles funktioniert einwandfrei.

Mein Dank wird Dir ewig nachrennen!!!! :p
Mal ohne Scherz, ich bedanke mich mal ganz feste,
sitze seit heute Morgen um 6 hier und probier das Ding reinzukriegen.

Dank sei aber trotzdem auch allen anderen, die sich wirklich auch jede Mühe gegeben haben.

Als Resümee, damit der Thread auch einen Sinn hat:

Will man links oder rechts eine Seite anzeigen, dann
folgenden Code ins Setup schreiben:

marks.RECHTS = CONTENT 
                  marks.RECHTS{ 
                                       table = tt_content 
                                       select { 
                                       pidInList = 22 ###=id der Seite mit dem darzustellenden Inhalt 
                                       orderBy = sorting 
                                     }

Wenn nun im HTML-Template in der rechten Spalte der Marker ###RECHTS### gesetzt ist, dann funktionierts!!

Danke nochmal an alle!!

nagus ·
TW schrieb

hi
so zb.

# xx object:
marks.xx = CONTENT
marks.xx >
marks.xx = RECORDS
marks.xx.tables = tt_content
marks.xx.source = id deines inhaltselementes

cu
thorsten

hi

funktioniert das ganze z.b. auch mit newsrecords die ich mit der extension "news" oder "mininews" erstellt habe?

danke im voraus
nagus

TW ·
nagus schrieb
TW schrieb

hi
so zb.

# xx object:
marks.xx = CONTENT
marks.xx >
marks.xx = RECORDS
marks.xx.tables = tt_content
marks.xx.source = id deines inhaltselementes

cu
thorsten

hi

funktioniert das ganze z.b. auch mit newsrecords die ich mit der extension "news" oder "mininews" erstellt habe?

danke im voraus
nagus

hi
nö!

wir reden hier über inhaltselemente!!!!!!!!!!!!!!!!!!!
records wie du sie meinst, weren ja erst durch das entsprechende plugin erstellt und müssen daher auch mit nem plugin wieder geholt werden!

besipiel sind die tt_news......

cu
thorsten

nagus ·
TW schrieb
nagus schrieb
TW schrieb

hi
so zb.

# xx object:
marks.xx = CONTENT
marks.xx >
marks.xx = RECORDS
marks.xx.tables = tt_content
marks.xx.source = id deines inhaltselementes

cu
thorsten

hi

funktioniert das ganze z.b. auch mit newsrecords die ich mit der extension "news" oder "mininews" erstellt habe?

danke im voraus
nagus

hi
nö!

wir reden hier über inhaltselemente!!!!!!!!!!!!!!!!!!!
records wie du sie meinst, weren ja erst durch das entsprechende plugin erstellt und müssen daher auch mit nem plugin wieder geholt werden!

besipiel sind die tt_news......

cu
thorsten

hallo

so ungefähr?

# xx object:
marks.box_1 = CONTENT
marks.box_1 >
marks.box_1 = RECORDS
marks.box_1.tables = tt_news
marks.box_1.source = id meines inhaltselementes mit records? oder sysordner?

nagus ·

ich poste mal mein ganzes template-setup... dann wirds wohl klarer was bei mir nicht läuft:

hab das "modern template building part 1" abgearbeitet... also der code stammt auch zu 90% von dort... bis auf ein paar kleinigkeiten.

der teil der nicht funktioniert ist FETT

# 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 dynamic menu:
subparts.menu_1 < temp.menu_1

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

# Substitute the ###news### subpart with some example news:
# subparts.news_1 < temp.news_1
subparts.news_1 < styles.content.getRight

marks.box_1 = CONTENT
marks.box_1 >
marks.box_1 = RECORDS
#marks.box_1.tables = tx_mininews_news
marks.box_1.tables = tt_content
marks.box_1.source = 35
subparts.box_1 < 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
}

und dann noch das template "autoparser"

# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {

# Read the template file:
content = FILE
content.file = fileadmin/taiko/template.htm

# 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/taiko/
}

und menu:

# Menu 1 cObject
temp.menu_1 = HMENU

###############
#LEVEL 1 TEXTMENU#
###############

temp.menu_1.1 = TMENU
temp.menu_1.1 {

#MENU OFF
NO {
allWrap = <img src="fileadmin/taiko/images/MenBul.gif">&nbsp; | <br>
ATagBeforeWrap = 1
ATagParams = class="menu1off"
}
#MENU ON
ACT = 1
ACT {
allWrap = <img src="fileadmin/taiko/images/MenBulOn.gif">&nbsp; | <br>
ATagBeforeWrap = 1
ATagParams = class="menu1on"
}
}

###############
#LEVEL 2 TEXTMENU#
###############

temp.menu_1.2 = TMENU
temp.menu_1.2 {

#MENU OFF
NO {
allWrap = &nbsp&nbsp&nbsp | <br>
ATagBeforeWrap = 1
ATagParams = class="menu2off"
}

#MENU ON
ACT = 1
ACT {
allWrap = &nbsp&nbsp&nbsp | <br>
ATagBeforeWrap = 1
ATagParams = class="menu2on"
}
}

[/quote]

TW ·

hi

so läuft es...

# xx object: 
marks.xx = CONTENT 
marks.xx > 
marks.xx = RECORDS 
marks.xx.tables = tt_content 
marks.xx.source = id deines inhaltselementes -> keine records ->kein sysordner

ne frage kennst du das prinzip vom news modul???
du weisst schon was ein sys ordner ist, oder?
oder was ein inhaltselement ist?

cu
thorsten

nagus ·
TW schrieb

hi

so läuft es...

# xx object: 
marks.xx = CONTENT 
marks.xx > 
marks.xx = RECORDS 
marks.xx.tables = tt_content 
marks.xx.source = id deines inhaltselementes -> keine records ->kein sysordner

ne frage kennst du das prinzip vom news modul???
du weisst schon was ein sys ordner ist, oder?
oder was ein inhaltselement ist?

cu
thorsten

ähm... prinzip? ich glaub schon.

😢 alles was ich will ist, dass i die verdammten news-records auf einer belibigen stelle auf meiner seite (im template-file markiert durch <td id=box_1>###box_1###</td> ) anzeigen kann

WIE???????? i steig da nimma durch. einmal werden "subparts" verwendet.. dann wieder "marks" ... i seh den wald vor bäumen nimma... bin am verzweifeln

TW ·
nagus schrieb
TW schrieb

hi

so läuft es...

# xx object: 
marks.xx = CONTENT 
marks.xx > 
marks.xx = RECORDS 
marks.xx.tables = tt_content 
marks.xx.source = id deines inhaltselementes -> keine records ->kein sysordner

ne frage kennst du das prinzip vom news modul???
du weisst schon was ein sys ordner ist, oder?
oder was ein inhaltselement ist?

cu
thorsten

ähm... prinzip? ich glaub schon.

😢 alles was ich will ist, dass i die verdammten news-records auf einer belibigen stelle auf meiner seite (im template-file markiert durch <td id=box_1>###box_1###</td> ) anzeigen kann

WIE???????? i steig da nimma durch. einmal werden "subparts" verwendet.. dann wieder "marks" ... i seh den wald vor bäumen nimma... bin am verzweifeln

also
sagen wir mal du hast dein plugin erstellt (hast du ja bestimmt), du hast auch schon news hinterlegt(hast du auch), dann brauchst du die id von dem plugin und dann gibst du diese in dem von mir genannten code an....

im html code musst du dann natürlich einen marker mit dem namen xxx anlegen....

ich weiss nicht wo das problem ist??? 😢

cu
thorsten

nagus ·
TW schrieb
nagus schrieb
TW schrieb

hi

so läuft es...

# xx object: 
marks.xx = CONTENT 
marks.xx > 
marks.xx = RECORDS 
marks.xx.tables = tt_content 
marks.xx.source = id deines inhaltselementes -> keine records ->kein sysordner

ne frage kennst du das prinzip vom news modul???
du weisst schon was ein sys ordner ist, oder?
oder was ein inhaltselement ist?

cu
thorsten

ähm... prinzip? ich glaub schon.

😢 alles was ich will ist, dass i die verdammten news-records auf einer belibigen stelle auf meiner seite (im template-file markiert durch <td id=box_1>###box_1###</td> ) anzeigen kann

WIE???????? i steig da nimma durch. einmal werden "subparts" verwendet.. dann wieder "marks" ... i seh den wald vor bäumen nimma... bin am verzweifeln

also
sagen wir mal du hast dein plugin erstellt (hast du ja bestimmt), du hast auch schon news hinterlegt(hast du auch), dann brauchst du die id von dem plugin und dann gibst du diese in dem von mir genannten code an....

im html code musst du dann natürlich einen marker mit dem namen xxx anlegen....

ich weiss nicht wo das problem ist??? 😢

cu
thorsten

i weiß ja auch nicht was los ist.

hab die extension "mini news" installiert, einen neuen sysordner angelegt und da drin die newsrecords angelegt.

aber es funzt nicht.

marks.box_1 = CONTENT
marks.box_1 >
marks.box_1 = RECORDS
marks.box_1.tables = tx_mininews_news (weißt nicht 100%ig ob das korrekt ist??)
marks.box_1.source = 59 (sysordner hat id 59)
marks.box_1 < styles.content.get

ist das prinzipiell so richtig?
vielleicht steht das ganze an der falschen stelle im setup??

TW ·
nagus schrieb
TW schrieb
nagus schrieb
TW schrieb

hi

so läuft es...

# xx object: 
marks.xx = CONTENT 
marks.xx > 
marks.xx = RECORDS 
marks.xx.tables = tt_content 
marks.xx.source = id deines inhaltselementes -> keine records ->kein sysordner

ne frage kennst du das prinzip vom news modul???
du weisst schon was ein sys ordner ist, oder?
oder was ein inhaltselement ist?

cu
thorsten

ähm... prinzip? ich glaub schon.

😢 alles was ich will ist, dass i die verdammten news-records auf einer belibigen stelle auf meiner seite (im template-file markiert durch <td id=box_1>###box_1###</td> ) anzeigen kann

WIE???????? i steig da nimma durch. einmal werden "subparts" verwendet.. dann wieder "marks" ... i seh den wald vor bäumen nimma... bin am verzweifeln

also
sagen wir mal du hast dein plugin erstellt (hast du ja bestimmt), du hast auch schon news hinterlegt(hast du auch), dann brauchst du die id von dem plugin und dann gibst du diese in dem von mir genannten code an....

im html code musst du dann natürlich einen marker mit dem namen xxx anlegen....

ich weiss nicht wo das problem ist??? 😢

cu
thorsten

i weiß ja auch nicht was los ist.

hab die extension "mini news" installiert, einen neuen sysordner angelegt und da drin die newsrecords angelegt.

aber es funzt nicht.

marks.box_1 = CONTENT
marks.box_1 >
marks.box_1 = RECORDS
marks.box_1.tables = tx_mininews_news (weißt nicht 100%ig ob das korrekt ist??)
marks.box_1.source = 59 (sysordner hat id 59)
marks.box_1 < styles.content.get

ist das prinzipiell so richtig?
vielleicht steht das ganze an der falschen stelle im setup??

äh hallo???????
wos habsch g´sogt??????

du musst die id von deinem plugin nehmen und nicht vom sys ordner!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

das template dazu gehört dann auf die seite wo das plugin is....
willst du es auf einer anderen seite muss auch da wieder ein plugin hin...
inkl. setup code

hast du es jetzt!

cu
thorsten

cu
thorsten

b00n ·

Bei mir funktioniert es so:

HTML-Template Marker: ###POTD###

Root-page setup:

seite.typeNum = 0
seite.20 = TEMPLATE
seite.20 {
template = FILE
template.file = fileadmin/transplantation/main_tx.htm
workOnSubpart = DOKUMENT

  marks.POTD = CONTENT 
  marks.POTD > 
  marks.POTD = RECORDS 
  marks.POTD.source = 427
  marks.POTD < styles.content.get

Hölle hölle hölle. Vielen dank für dieses Thread 😃