TW schriebhi
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
nagus schriebTW schriebhi
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
TW schriebnagus schriebTW schriebhi
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?
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"> | <br>
ATagBeforeWrap = 1
ATagParams = class="menu1off"
}
#MENU ON
ACT = 1
ACT {
allWrap = <img src="fileadmin/taiko/images/MenBulOn.gif"> | <br>
ATagBeforeWrap = 1
ATagParams = class="menu1on"
}
}
###############
#LEVEL 2 TEXTMENU#
###############
temp.menu_1.2 = TMENU
temp.menu_1.2 {
#MENU OFF
NO {
allWrap =     | <br>
ATagBeforeWrap = 1
ATagParams = class="menu2off"
}
#MENU ON
ACT = 1
ACT {
allWrap =     | <br>
ATagBeforeWrap = 1
ATagParams = class="menu2on"
}
}
[/quote]
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
TW schriebhi
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
nagus schriebTW schriebhi
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
TW schriebnagus schriebTW schriebhi
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??
nagus schriebTW schriebnagus schriebTW schriebhi
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
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 😃