Hallo,
ich habe funktionierend tt_news eingerichtet. Außerdem nun einen zweiten Sysordner mit den deutschen Beiträgen.
Nun muß ich ja irgendwie auf der News-Seite einrichten, das abhängig von der Language-Id mal der eine, mal der andere Sysordner angesprungen wird.
Jedoch bietet das Formular (logischerweise) nur die Auswahl EINES Sysordners an.
Also vermute ich, muß ich eine Kopie der Newsseite für jede Sprache anlegen.
Doch da ich Mehrsprachigkeit grundsätzlich über plugin, und nicht mit einem root pro Sprache gelöst habe, habe ich keine Ahnung wie ich es einbaue, das die Newsseite abhängig von der gewählten Sprache angewählt wird.
Außerdem sind da ja auch noch die Skript-Blöcke im obersten template, welche die News initialisieren. Diese muß ich dann wohl auch noch anpassen?
#Constants:
plugin.tt_news {
file.templateFile = media/scripts/news_template.tmpl
#date color
wrap1 = <font color="#FFFF00"> | </font>
#title color
wrap2 = <font color="#004263"> | </font>
color1 = #999999
color2 = #004263
PIDitemDisplay = 27
# date_stdWrap.strftime = %A %d of %b %Y
}
# Setup:
# SPRACHDEFINITIONEN
temp.sprachen = PHP_SCRIPT
temp.sprachen.file = fileadmin/Vorlagen/my_languageMenu.php
config.linkVars = L
# English als Standardsprache
config.sys_language_uid = 0
config.language = en
config.locale_all = english
# Deutsch als zweitsprache , sys_language.uid = 1
[globalVar = GP:L = 1]
config.sys_language_uid = 1
config.language = de
config.locale_all = de_DE
[global]
select.orderBy = sorting
select.where = colPos=0
select.languageField = sys_language_uid
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.bodyTag= <body style="margin:0px;background-image:url(pics/bg_1_1.jpg);background-position:40px;">
page.stylesheet = fileadmin/Vorlagen/freepia.css
page.10 = TEMPLATE
page.10 {
template = FILE
template.file = fileadmin/Vorlagen/freepia.tmpl
workOnSubpart = Document
plugin.tt_news {
limit = 5
displayList {
image.file.maxW = 100
imageWrapIfAny (
<table align="left" bgcolor="#AAAAAA" cellpadding="1" cellspacing="0" border="0">
<tr><td>
<table bgcolor="#EEEEEE" cellpadding="0" cellspacing="0" border="0">
<tr><td> | </td></tr>
</table>
</td></tr>
</table>
)
}
displaySingle {
image.file.maxW = 100
imageWrapIfAny (
<table align="left" bgcolor="#AAAAAA" cellpadding="1" cellspacing="0" border="0">
<tr><td>
<table bgcolor="#EEEEEE" cellpadding="0" cellspacing="0" border="0">
<tr><td> | </td></tr>
</table>
</td></tr>
</table>
)
}
}
marks {
Sprache < temp.sprachen
Main < styles.content.get
......