Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| typo3:t3sports [2014/08/26 21:23] – admin | typo3:t3sports [2015/02/07 15:43] (aktuell) – admin | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== T3sports (cfc_league_fe) ====== | + | ====== T3sports (cfc_league / cfc_league_fe) ====== |
| + | |||
| + | ===== Anleitungen ===== | ||
| + | |||
| + | ==== Spielplan erstellen ==== | ||
| + | |||
| + | Um einen von anderer Stelle erstellten Spielplan korrekt zu kopieren, kann man den Spielschlüssel verwenden. Ist dieser nicht bekannt, lässt er sich auch einfach selbst erstellen: | ||
| + | - Spiele __der Hinrunde__ aus Spielplan in Datei kopieren | ||
| + | - Vereinsnamen durch Nummern ersetzen, __analog zur Reihenfolge der Teams im T3sports-Wettbewerb__ | ||
| + | - Spielschlüssel formatieren: | ||
| + | * **Bindestrich** zwischen gegeneinander spielende Teams; | ||
| + | * **Komma** zwischen den Spielen; | ||
| + | * **Pipe-Symbol** zwischen den Spieltagen. | ||
| + | * **Beispiel: | ||
| + | |||
| + | Der fertige Spielschlüssel kann dann im Wettbewerb eingefügt werden. Damit lässt sich nun der Spielplan im Modul erstellen, wahlweise die gesamte Saison oder aber nur Hin- oder Rückrunde (für die Rückrunde verwendet T3sports die Paarungen der Hinrunde und tauscht Heim/ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Navigation zwischen Spielrunden ==== | ||
| + | |||
| + | Für die Navigation zwischen den einzelnen Spieltagen wird der Wert aus dem Feld " | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Snippets | ||
| Professionelles, | Professionelles, | ||
| - | ===== Eigene Templates | + | ==== Eigene Templates ==== |
| <code typoscript> | <code typoscript> | ||
| Zeile 19: | Zeile 44: | ||
| } | } | ||
| </ | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Kompakt-Tabelle ==== | ||
| + | |||
| + | <code typoscript> | ||
| + | lib.leagueTable < plugin.tx_cfcleaguefe_competition | ||
| + | lib.leagueTable { | ||
| + | action = tx_cfcleaguefe_actions_LeagueTableShow | ||
| + | leaguetableTemplate = fileadmin/ | ||
| + | tablescope = 0 | ||
| + | tabletype = 0 | ||
| + | | ||
| + | # UID des eigenen Vereins: | ||
| + | leaguetable.tablecfg.markClubs = 1 | ||
| + | | ||
| + | # UID des Wettbewerbs: | ||
| + | competitionSelection = 2 | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Nächstes Spiel ==== | ||
| + | |||
| + | <code typoscript> | ||
| + | lib.nextGame < plugin.tx_cfcleaguefe_competition | ||
| + | lib.nextGame { | ||
| + | action = tx_cfcleaguefe_actions_MatchTable | ||
| + | matchtableTemplate = fileadmin/ | ||
| + | | ||
| + | # Saison-UID(s), | ||
| + | saisonSelection = 4,5,6 | ||
| + | | ||
| + | # UID des eigenen Vereins: | ||
| + | clubSelection = 1 | ||
| + | | ||
| + | # Nur Spiele der nächsten 30 Tage anzeigen: | ||
| + | matchtable.timeRangeFuture = 30 | ||
| + | | ||
| + | # Nur ein (das erste) Spiel: | ||
| + | matchtable.options.limit = 1 | ||
| + | | ||
| + | # Nur angesetzte und laufende Spiele anzeigen: | ||
| + | # matchtable.fields.MATCH.STATUS.OP_IN_INT = 0,1 | ||
| + | | ||
| + | # " | ||
| + | matchtable.match { | ||
| + | home =< lib.t3sports.teamSmall | ||
| + | home { | ||
| + | name.if { | ||
| + | value = Eigenen Teamnamen | ||
| + | equals.field = name | ||
| + | negate = 1 | ||
| + | } | ||
| + | } | ||
| + | guest =< lib.t3sports.teamSmall | ||
| + | guest { | ||
| + | name.if { | ||
| + | value = Eigenen Teamnamen | ||
| + | equals.field = name | ||
| + | negate = 1 | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Verlängerung/ | ||
| + | |||
| + | Mit dem Marker '' | ||
| + | |||
| + | **TypoScript: | ||
| <code typoscript> | <code typoscript> | ||
| - | # Ergänzung im Template bei Verlängerung/ | ||
| lib.t3sports.match.dcresultsuffix = COA | lib.t3sports.match.dcresultsuffix = COA | ||
| lib.t3sports.match.dcresultsuffix { | lib.t3sports.match.dcresultsuffix { | ||
| Zeile 38: | Zeile 137: | ||
| </ | </ | ||
| - | ===== ===== | + | ** Template-Teilstück (matchtable): |
| + | <code html> | ||
| + | <!-- ### | ||
| + | ### | ||
| + | <!-- ### | ||
| + | </ | ||
| + | **Ausgabe: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Ligatabelle: | ||
| + | |||
| + | Die Tabelle bietet Ansichten für Hin- und Rückrunde, Heim- und Auswärtsspiele. Um diese Links als Select-Feld anzulegen, benötigt man das folgende TypoScript und eine Änderung im // | ||
| + | **TypoScript: | ||
| <code typoscript> | <code typoscript> | ||
| # Wraps ersetzen (nötig für Selectfeld bei Scope): | # Wraps ersetzen (nötig für Selectfeld bei Scope): | ||
| plugin.tx_cfcleaguefe_competition.leaguetable.controls { | plugin.tx_cfcleaguefe_competition.leaguetable.controls { | ||
| - | tabletype { | + | |
| - | current.wrap = selected=" | + | current.wrap = selected=" |
| - | normal.wrap = value="/ | + | normal.wrap = value="/ |
| - | } | + | } |
| - | tablescope { | + | tablescope { |
| - | current.wrap = selected=" | + | current.wrap = selected=" |
| - | normal.wrap = value="/ | + | normal.wrap = value="/ |
| - | } | + | } |
| - | pointsystem { | + | pointsystem { |
| - | current.wrap = selected=" | + | current.wrap = selected=" |
| - | normal.wrap = value="/ | + | normal.wrap = value="/ |
| - | } | + | } |
| } | } | ||
| </ | </ | ||
| - | ===== ===== | + | **Template-Teilstück (leaguetable): |
| + | <code html> | ||
| + | <!-- ### | ||
| + | <div class=" | ||
| + | ### | ||
| + | <select class=" | ||
| + | <option ### | ||
| + | <option ### | ||
| + | <option ### | ||
| + | </ | ||
| + | ### | ||
| + | |||
| + | ### | ||
| + | <select class=" | ||
| + | <option ### | ||
| + | <option ### | ||
| + | <option ### | ||
| + | </ | ||
| + | ### | ||
| + | |||
| + | ### | ||
| + | <select class=" | ||
| + | <option ### | ||
| + | <option ### | ||
| + | </ | ||
| + | ### | ||
| + | </ | ||
| + | <!-- ### | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ==== Eigenes Team in Tabellen hervorheben ==== | ||
| + | |||
| + | In Ligatabellen kann Tabellenzeilen mit dem eigenen Team eine CSS-Klasse hinzugefügt werden. | ||
| <code typoscript> | <code typoscript> | ||
| - | # CSS-Klasse in Tabellen: | ||
| plugin.tx_cfcleaguefe_competition.leaguetable.table.markClub.override = fav-team | plugin.tx_cfcleaguefe_competition.leaguetable.table.markClub.override = fav-team | ||
| </ | </ | ||
| - | ===== ===== | + | ---- |
| + | |||
| + | ==== Datum formatieren | ||
| <code typoscript> | <code typoscript> | ||
| - | # Datum formatieren: | ||
| lib.t3sports.match.date.default.strftime = %d.%m.%Y • %H:%M | lib.t3sports.match.date.default.strftime = %d.%m.%Y • %H:%M | ||
| </ | </ | ||
| - | ===== ===== | + | ---- |
| + | |||
| + | ==== Klammer um Platznamen entfernen | ||
| <code typoscript> | <code typoscript> | ||
| - | # Klammer um Platznamen entfernen: | ||
| plugin.tx_cfcleaguefe_competition.matchtable.match.stadium.wrap > | plugin.tx_cfcleaguefe_competition.matchtable.match.stadium.wrap > | ||
| </ | </ | ||
| - | ===== ===== | + | ---- |
| - | <code typoscript> | + | ==== Scopeselection: Aktiver Spieltag ==== |
| - | # Spieltag-Auswahl - aktiver Spieltag: | + | |
| - | plugin.tx_cfcleaguefe_competition.scopeSelection.round.current.stdWrap.wrap | + | |
| - | </ | + | |
| - | ===== ===== | + | Den aktiven Spieltag in der Spieltagsliste anders formatieren. |
| <code typoscript> | <code typoscript> | ||
| - | # Kompakt-Tabelle: | + | plugin.tx_cfcleaguefe_competition.scopeSelection.round.current.stdWrap.wrap |
| - | lib.leagueTable = RECORDS | + | </ |
| - | lib.leagueTable { | + | |
| - | tables | + | |
| - | source | + | |
| - | } | + | |
| + | ---- | ||
| - | # Nächstes Spiel: | + | ==== Spielplan-Ausgabe ohne eigenen Teamnamen ==== |
| - | lib.nextGame | + | |
| - | lib.nextGame { | + | |
| - | tables | + | |
| - | source | + | |
| - | } | + | |
| - | </ | + | |
| - | ===== Spielplan-Ausgabe ohne eigenen | + | Teamnamen |
| - | Teamnamen werden mit den Markern ''### | + | **TypoScript:** |
| <code typoscript> | <code typoscript> | ||
| - | # "1. FC Köln" in Terminliste ausblenden: | + | # UID der Seite mit Spielplan-Ausgabe |
| [PIDinRootline = 4] | [PIDinRootline = 4] | ||
| + | # "1. FC Köln" in Terminliste ausblenden: | ||
| plugin.tx_cfcleaguefe_competition.matchtable.match { | plugin.tx_cfcleaguefe_competition.matchtable.match { | ||
| home =< lib.t3sports.teamSmall | home =< lib.t3sports.teamSmall | ||
| Zeile 131: | Zeile 267: | ||
| [global] | [global] | ||
| </ | </ | ||
| + | **Template-Teilstück (matchtable): | ||
| <code html> | <code html> | ||
| ###MATCH### | ###MATCH### | ||
| Zeile 144: | Zeile 281: | ||
| </ | </ | ||
| - | ===== ===== | + | ---- |
| + | ==== Bildgrößen bei Spiel-Notiz, | ||
| <code typoscript> | <code typoscript> | ||
| - | # Bildgröße Team: | ||
| lib.t3sports.teamnote.conf.tx_cfcleague_team_notes { | lib.t3sports.teamnote.conf.tx_cfcleague_team_notes { | ||
| 1.file.maxW = 120 | 1.file.maxW = 120 | ||
| Zeile 154: | Zeile 291: | ||
| </ | </ | ||
| - | ===== ===== | + | ---- |
| + | |||
| + | ==== Teamnotizen ausgeben | ||
| <code typoscript> | <code typoscript> | ||
| - | # Teamnotizen ausgeben: | ||
| lib.t3sports.profile.tntrikotnr =< lib.t3sports.teamnote | lib.t3sports.profile.tntrikotnr =< lib.t3sports.teamnote | ||
| lib.t3sports.profile.tnposition =< lib.t3sports.teamnote | lib.t3sports.profile.tnposition =< lib.t3sports.teamnote | ||
| lib.t3sports.profile.tnphoto =< lib.t3sports.teamnote | lib.t3sports.profile.tnphoto =< lib.t3sports.teamnote | ||
| - | |||
| </ | </ | ||
| + | <WRAP tip> | ||
| + | Der verwendete HTML-Marker muss im Notiz-Typ **klein** geschrieben werden! | ||
| + | Nur im HTML-Template wird er groß geschrieben: | ||
| + | ### | ||
| + | </ | ||