Hallo,
ich habe eine Saison 2007/08 angelegt. Teams, Wettbewerb, Spiele ebenso. Wurde auch gut angezeigt. Ergebnistabelle und Spielplan.
Dann Anlage Saison 2008/09. Weiter w.o. Anzeige "Ergebnistabelle" bringt jetzt nur noch die 08/09 Sätze. Und zwar über den Auswahl-Link "Saison 2007/08" wie auch über "Saison 2008/09".
Der Spielplan zeigt die 08/09-Sätze. Nach Klick auf Link "Saison2007/08" erscheint nichts mehr.
rootsysfolder-inhalt:
- ein agegroup-satz
- zwei saison-sätze
_____sysfolderSaison2007/08-inhalt:
_____- wettbewerb-satz
_____- spiele
_________sysfolderTeams-inhalt:
_________- team-saetze
_____sysfolderSaison2008/09-inhalt:
_____- wettbewerb-satz
_____- spiele
__________sysfolderTeams-inhalt:
__________- team-saetze
Braucht es einen zweiten agegroup-Satz? Der verwendete hier beinhaltet den Wert "1. Mannschaft". Dieser Satz bräuchte eine Verknüpfung zu beiden Saisons.
Wie kann ich mit den Saison-Links verschiedene Jahrestabellen anzeigen?
beste grüße
trem
Hallo trem,
ich vermute da stimmen die Verknüpfungen der Daten nicht richtig. Bei Spielplan man die Abfrage an die Datenbank recht einfach testen. Im Flexform gibt es ein Flag "Debug SQL-Query". Das solltest du mal aktivieren und dann schauen wie sich die Abfrage ändert.
Die Spiele werden immer über den Wettbewerb aus der Datenbank geholt. Der Wettbewerb muss wiederum der passenenden Saison zugeordnet sein.
Du kannst ja mal die beiden SQL-Queries hier posten.
Hallo digedag,
es war die falsche Datenverknüpfung!
Wg. fehlendem SQL-Container hier JS. Erklärung findet sich im SQL-Text. Die wichtigen Felder sind geboldet.
digedag schrieb
Du kannst ja mal die beiden SQL-Queries hier posten.
###
MISSERFOLG start
Abfrage auf Saison 2007/08 mit
competition aus uid 3 und/oder 4
saison uid == 1
agegroup-satz uid==1
Diese Suche funzt, weil im BE im Plugin (für die Ausgabe im FE) gesagt wurde, zeige Sätze mit dieser agegroup uid == 1.
Dem Datensatz Competition/Wettbewerb wurde im BE gesagt, du besitzt eine Verknüpfung/Beziehung zum agegroup-Satz uid == 1! Also, alles gut.
SELECT DISTINCT tx_cfcleague_games.* FROM tx_cfcleague_games JOIN tx_cfcleague_competition ON tx_cfcleague_games.competition = tx_cfcleague_competition.uid INNER JOIN tx_cfcleague_teams As t1 ON tx_cfcleague_games.home = t1.uid INNER JOIN tx_cfcleague_teams As t2 ON tx_cfcleague_games.guest = t2.uid WHERE 1=1 AND tx_cfcleague_games.status IN (0,2) AND tx_cfcleague_games.[b]competition [/b]IN (3,4) AND tx_cfcleague_competition.[b]saison [/b]IN (1) AND tx_cfcleague_competition.[b]agegroup [/b]IN (1) AND tx_cfcleague_competition.type IN (1) AND tx_cfcleague_competition.obligation = 1 AND (t1.club IN (4) OR t2.club IN (4) OR t1.club IN (5) OR t2.club IN (5) OR t1.club IN (6) OR t2.club IN (6) OR t1.club IN (7) OR t2.club IN (7) OR t1.club IN (8-) OR t2.club IN (8-) OR t1.club IN (2) OR t2.club IN (2) OR t1.club IN (1) OR t2.club IN (1) OR t1.club IN (3) OR t2.club IN (3) OR t1.club IN (9) OR t2.club IN (9)) AND tx_cfcleague_games.deleted=0 AND tx_cfcleague_games.hidden=0 ORDER BY tx_cfcleague_games.date ASC|
0 DISTINCT tx_cfcleague_games.*
1
0 tx_cfcleague_games JOIN tx_cfcleague_competition ON tx_cfcleague_games.competition = tx_cfcleague_competition.uid INNER JOIN tx_cfcleague_teams As t1 ON tx_cfcleague_games.home = t1.uid INNER JOIN tx_cfcleague_teams As t2 ON tx_cfcleague_games.guest = t2.uid
1 tx_cfcleague_games
2 1=1 AND tx_cfcleague_games.status IN (0,2) AND tx_cfcleague_games.[b]competition [/b]IN (3,4) AND tx_cfcleague_competition.[b]saison [/b]IN (1) AND tx_cfcleague_competition.[b]agegroup [/b]IN (1) AND tx_cfcleague_competition.type IN (1) AND tx_cfcleague_competition.obligation = 1 AND (t1.club IN (4) OR t2.club IN (4) OR t1.club IN (5) OR t2.club IN (5) OR t1.club IN (6) OR t2.club IN (6) OR t1.club IN (7) OR t2.club IN (7) OR t1.club IN (8-) OR t2.club IN (8-) OR t1.club IN (2) OR t2.club IN (2) OR t1.club IN (1) OR t2.club IN (1) OR t1.club IN (3) OR t2.club IN (3) OR t1.club IN (9) OR t2.club IN (9)) AND tx_cfcleague_games.deleted=0 AND tx_cfcleague_games.hidden=0
Rows retrieved. Time: 0.00768685340881s
|12|
Termine und Ergebnisse
* Ergebnistabelle |
* Termine und Ergebnisse |
* Regeln |
* Teilnehmerliste
Saison 2008/09 - Saison 2007/08
Anstoss Heim Gast Ergebnis
Mo, 10.03.08 Anstoss: 15:20 Uhr WELLENBRECHER REMIX 12 : 0
Mo, 10.03.08 Anstoss: 15:20 Uhr FOCUS LUPE 12 : 0
Do, 10.04.08 Anstoss: 15:20 Uhr REMIX LUPE 12 : 0
Do, 10.04.08 Anstoss: 15:20 Uhr WELLENBRECHER FOCUS 12 : 0
Sa, 10.05.08 Anstoss: 15:20 Uhr FOCUS REMIX 12 : 0
Sa, 10.05.08 Anstoss: 15:20 Uhr WELLENBRECHER LUPE 12 : 0
Di, 10.06.08 Anstoss: 15:20 Uhr REMIX WELLENBRECHER 12 : 0
Di, 10.06.08 Anstoss: 15:20 Uhr LUPE FOCUS 12 : 0
Sa, 05.07.08 Anstoss: 15:20 Uhr REMIX FOCUS 12 : 0
Sa, 05.07.08 Anstoss: 15:20 Uhr LUPE WELLENBRECHER 12 : 0
Do, 10.07.08 Anstoss: 15:20 Uhr LUPE REMIX 1 : 11
Do, 10.07.08 Anstoss: 15:20 Uhr FOCUS WELLENBRECHER 11 : 1
12 Spiele gefunden.
###
######
Abfrage auf Saison 2008/09 mit
competition aus uid 3 und/oder 4
saison uid == 3
agegroup-satz uid==1
Hier zeigt sich der Misserfolg:
Im BE wurde dem Wettbewerb/Competition-Satz "2008/09" ein anderer, zweiter Agegroup-Satz mit uid == 2 zugewiesen. Also kein Wunder, dass hier nichts angezeigt wird. Denn das Plugin fürs FE hat nur die Info "Zeige Sätze, die mit agegroup-Satz uid == 1 verbunden sind.
SELECT DISTINCT tx_cfcleague_games.* FROM tx_cfcleague_games JOIN tx_cfcleague_competition ON tx_cfcleague_games.competition = tx_cfcleague_competition.uid INNER JOIN tx_cfcleague_teams As t1 ON tx_cfcleague_games.home = t1.uid INNER JOIN tx_cfcleague_teams As t2 ON tx_cfcleague_games.guest = t2.uid WHERE 1=1 AND tx_cfcleague_games.status IN (0,2) AND tx_cfcleague_games.[b]competition [/b]IN (3,4) AND tx_cfcleague_competition.[b]saison [/b]IN (3) AND tx_cfcleague_competition.[b]agegroup [/b]IN (1) AND tx_cfcleague_competition.type IN (1) AND tx_cfcleague_competition.obligation = 1 AND (t1.club IN (4) OR t2.club IN (4) OR t1.club IN (5) OR t2.club IN (5) OR t1.club IN (6) OR t2.club IN (6) OR t1.club IN (7) OR t2.club IN (7) OR t1.club IN (8-) OR t2.club IN (8-) OR t1.club IN (2) OR t2.club IN (2) OR t1.club IN (1) OR t2.club IN (1) OR t1.club IN (3) OR t2.club IN (3) OR t1.club IN (9) OR t2.club IN (9)) AND tx_cfcleague_games.deleted=0 AND tx_cfcleague_games.hidden=0 ORDER BY tx_cfcleague_games.date ASC|
0 DISTINCT tx_cfcleague_games.*
1
0 tx_cfcleague_games JOIN tx_cfcleague_competition ON tx_cfcleague_games.competition = tx_cfcleague_competition.uid INNER JOIN tx_cfcleague_teams As t1 ON tx_cfcleague_games.home = t1.uid INNER JOIN tx_cfcleague_teams As t2 ON tx_cfcleague_games.guest = t2.uid
1 tx_cfcleague_games
2 1=1 AND tx_cfcleague_games.status IN (0,2) AND tx_cfcleague_games.[b]competition [/b]IN (3,4) AND tx_cfcleague_competition.saison IN (3) AND tx_cfcleague_competition.agegroup IN (1) AND tx_cfcleague_competition.type IN (1) AND tx_cfcleague_competition.obligation = 1 AND (t1.club IN (4) OR t2.club IN (4) OR t1.club IN (5) OR t2.club IN (5) OR t1.club IN (6) OR t2.club IN (6) OR t1.club IN (7) OR t2.club IN (7) OR t1.club IN (8-) OR t2.club IN (8-) OR t1.club IN (2) OR t2.club IN (2) OR t1.club IN (1) OR t2.club IN (1) OR t1.club IN (3) OR t2.club IN (3) OR t1.club IN (9) OR t2.club IN (9)) AND tx_cfcleague_games.deleted=0 AND tx_cfcleague_games.hidden=0
Rows retrieved. Time: 0.00484681129456s
|0|
Termine und Ergebnisse
* Ergebnistabelle |
* Termine und Ergebnisse |
* Regeln |
* Teilnehmerliste
Saison 2008/09 - Saison 2007/08
MISSERFOLG ende
######
Das "Geheimnis" der richtigen FE-Anzeige liegt also teilweise hierin:
Man gebe dem Plugin im BE für die Ausgabe im FE mit, welche Sätze angezeigt werden sollen.
Diese Angaben MÜSSEN mit den Datensätzem im BE, das sind die in den Sysfoldern, übereinstimmen!
Wenn die o.g. Situation gewollt wäre, also es soll einen zweiten Agegroup-Satz geben für die Saison 2008/09, wäre die Lösung, dem Plugin beide agegroup-Sätze zu "geben" (in der Sel-Box im Plugin für agegroup-Sätze). Fast wie Perl (There is more than one way to do it (TIMTOWTDI, usually pronounced "Tim Toady")
Das ist alles 😉
trem schriebDas "Geheimnis" der richtigen FE-Anzeige liegt also teilweise hierin:
Man gebe dem Plugin im BE für die Ausgabe im FE mit, welche Sätze angezeigt werden sollen.
Also wie ich sehe, hast du ja die Datenbankabfrage selbst richtig interpretiert. 😃 Das "Geheimnis" ist letztendlich das, was in der Anleitung als Scope beschrieben ist. Mit diesem legt man fest, welche Daten in die FE-Ausgabe einfließen. Damit hat man so ziemlich die maximale Freiheit, welche Daten man anzeigen möchte. Denn schließlich will man ja nicht immer alle Spiele in einem Spielplan anzeigen. 😉
Die Altersklassen müssen übrigens nur einmalig angelegt werden. Eine "U18" kann/sollte man zum Beispiel immer wieder verwenden!