Abschnitt: Youtube: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 43: | Zeile 43: | ||
= Konfiguration = | = Konfiguration = | ||
| + | <source lang="javascript"> | ||
| + | { | ||
| + | sectionTypes: { | ||
| + | "youtube": { | ||
| + | "id" : "youtube", | ||
| + | "name": "Youtube", | ||
| + | "order": 0.1, | ||
| + | "template": { "module" : "sitekit-module", "uri" : "/templates/sectionTypes/youtube.spml" }, | ||
| + | "aggregator": { "module" : "sitekit-module", "uri" : "/aggregator/sectionTypes/youtube.spml" } | ||
| + | }, | ||
| + | ... | ||
| + | } | ||
| + | } | ||
| + | </source> | ||
= Mehrspachigkeit = | = Mehrspachigkeit = | ||
Version vom 17. Juli 2015, 12:47 Uhr
Beschreibung
Der Youtube-Abschnitt bietet die Möglichkeit Youtube-Videos anhand der Video-Id oder Youtube-URL einzubinden. Eine Ausgabe erfolgt nur wenn eine Video-Id / Youtube-URL und ein Alternativtext eingetragen sind.
Datenstruktur IES
| Name | Typ | Benötigt | Beschreibung |
|---|---|---|---|
sp_video
|
String | true | Video-Id oder Youtube-URL |
sp_videoAspectRatio
|
String | false | Seitenverhältnis für die Ausgabe (im Format 16x9)
|
sp_videoAutoplay
|
Boolean | false | Steuert ob die Wiedergabe nach dem Seitenaufruf gestartet werden soll |
sp_videoText
|
String | true | Video-Alternativtext |
sp_videoLegend
|
String | false | Video Unterschrift |
sp_videoCopyright
|
String | false | Video Copyright |
Konfiguration
{
sectionTypes: {
"youtube": {
"id" : "youtube",
"name": "Youtube",
"order": 0.1,
"template": { "module" : "sitekit-module", "uri" : "/templates/sectionTypes/youtube.spml" },
"aggregator": { "module" : "sitekit-module", "uri" : "/aggregator/sectionTypes/youtube.spml" }
},
...
}
}
Mehrspachigkeit
{
"label": {
"video": "YouTube Video-ID oder -URL",
"videoAspectRatio": "Seitenverhältnis des Videos",
"youtubeAutoplay": "Abspielen des Videos automatisch starten",
"videoLegend": "Videounterschrift",
"videoCopyright": "Copyright",
"videoText": "Alternativtext"
},
"notice": {
"required": "*(<em>Pflichtfeld, zur Ausgabe des Videos erforderlich</em>)"
}
}