/ M014 Slide-In Panel

Slide-In Panel Default Content Headline

Non ipsum nulla qui aliquip est reprehenderit. Ipsum cupidatat mollit magna ea laborum aute labore consequat enim eu pariatur officia dolore sint. Incididunt quis sit Lorem cillum est velit aute occaecat velit do et aliqua.
Das ist ein Primary Call to Action

Default implemention.

Data

{
	"list": [
		{
			"id": "example-content-1-1",
			"headline": "SAC-Tourenportal",
			"headlineTag": "h4",
			"copy": "Finde deine Traumroute im SAC-Tourenportal",
			"icon": "tourenportal",
			"module": {
				"partial": "modules/m038_slide_in_panel_default_content/m038_slide_in_panel_default_content",
				"data": {
					"headline": "Slide-In Panel Default Content Headline",
					"headlineTag": "h3",
					"subline": "mit Untertitel",
					"sublineTag": "h4",
					"copy": "Non ipsum nulla qui aliquip est reprehenderit. Ipsum cupidatat mollit magna ea laborum aute labore consequat enim eu pariatur officia dolore sint. Incididunt quis sit Lorem cillum est velit aute occaecat velit do et aliqua.",
					"link": {
						"label": "Das ist ein Primary Call to Action",
						"icon": "",
						"url": "#"
					}
				}
			},
			"link": null
		},
		{
			"id": "example-content-1-2",
			"headline": "SAC-Shop",
			"headlineTag": "h4",
			"copy": "Bücher, Karten und Club-Artikel",
			"icon": "shopping-bag",
			"module": {
				"partial": "modules/m020_teaser_list/m020_teaser_list",
				"data": {
					"list": [
						{
							"partial": "modules/c011_teaser_event/c011_teaser_event",
							"data": {
								"headline": "IFSC Boulder-Worldcup",
								"headlineTag": "h3",
								"dateStart": {
									"readable": "07.04.",
									"machine": "2017-04-07"
								},
								"dateEnd": {
									"readable": "08.04.2017",
									"machine": "2017-04-08"
								},
								"categoryLink": {
									"url": "#",
									"label": "Leistungssport"
								},
								"location": "Meiringen, CH",
								"img": {
									"srcset": {
										"sizeList": [
											[
												280
											],
											[
												729
											],
											[
												1458
											]
										],
										"basePath": "/modules/c011_teaser_event/media/teaser_event_",
										"fileExtension": ".jpg"
									},
									"alt": "Alt Text"
								},
								"link": {
									"url": "#"
								}
							}
						},
						{
							"partial": "modules/c011_teaser_event/c011_teaser_event",
							"data": {
								"headline": "IFSC Boulder-Worldcup II",
								"headlineTag": "h3",
								"dateStart": {
									"readable": "08.04.2017",
									"machine": "2017-04-08"
								},
								"categoryLink": {
									"url": "#",
									"label": "Leistungssport"
								},
								"location": "Meiringen, CH",
								"img": {
									"srcset": {
										"sizeList": [
											[
												280
											],
											[
												729
											],
											[
												1458
											]
										],
										"basePath": "/modules/c011_teaser_event/media/teaser_event_",
										"fileExtension": ".jpg"
									},
									"alt": "Alt Text"
								},
								"link": {
									"url": "#"
								}
							}
						},
						{
							"partial": "modules/c011_teaser_event/c011_teaser_event",
							"data": {
								"headline": "IFSC Boulder-Worldcup II",
								"headlineTag": "h3",
								"dateStart": {
									"readable": "08.04.2017",
									"machine": "2017-04-08"
								},
								"categoryLink": {
									"url": "#",
									"label": "Leistungssport"
								},
								"location": "Meiringen, CH",
								"img": {
									"srcset": {
										"sizeList": [
											[
												280
											],
											[
												729
											],
											[
												1458
											]
										],
										"basePath": "/modules/c011_teaser_event/media/teaser_event_",
										"fileExtension": ".jpg"
									},
									"alt": "Alt Text"
								},
								"link": {
									"url": "#"
								}
							}
						},
						{
							"partial": "modules/c011_teaser_event/c011_teaser_event",
							"data": {
								"headline": "IFSC Boulder-Worldcup",
								"headlineTag": "h3",
								"dateStart": {
									"readable": "07.04.",
									"machine": "2017-04-07"
								},
								"dateEnd": {
									"readable": "08.04.2017",
									"machine": "2017-04-08"
								},
								"categoryLink": {
									"url": "#",
									"label": "Leistungssport"
								},
								"location": "Meiringen, CH",
								"img": {
									"srcset": {
										"sizeList": [
											[
												280
											],
											[
												729
											],
											[
												1458
											]
										],
										"basePath": "/modules/c011_teaser_event/media/teaser_event_",
										"fileExtension": ".jpg"
									},
									"alt": "Alt Text"
								},
								"link": {
									"url": "#"
								}
							}
						}
					]
				}
			},
			"link": null
		},
		{
			"id": "example-content-1-3",
			"headline": "Mitgliedschaft",
			"headlineTag": "h4",
			"copy": "Jetzt Mitglied werden",
			"icon": "membership",
			"module": {
				"partial": "modules/m020_teaser_list/m020_teaser_list",
				"data": {
					"list": [
						{
							"partial": "modules/c012_teaser_article/c012_teaser_article",
							"data": {
								"date": {
									"readable": "06.12.2017",
									"machine": "2017-12-06"
								},
								"headline": "Das ist der Titel dieses interessanten Beitrags",
								"headlineTag": "h3",
								"copy": null,
								"img": {
									"srcset": {
										"sizeList": [
											[
												280
											],
											[
												729
											],
											[
												1458
											]
										],
										"basePath": "/modules/c012_teaser_article/media/teaser_article_",
										"fileExtension": ".jpg"
									},
									"alt": "Alt Text"
								},
								"link": {
									"label": "Artikel lesen",
									"url": "#",
									"title": "Das ist der Titel dieses interessanten Beitrags"
								},
								"categoryLink": {
									"url": "#",
									"label": "Jugend"
								},
								"commentsLink": null,
								"sharesLink": null
							}
						},
						{
							"partial": "modules/c012_teaser_article/c012_teaser_article",
							"data": {
								"date": {
									"readable": "11.12.2017",
									"machine": "2017-12-11"
								},
								"headline": "Sehr kurze Headline",
								"headlineTag": "h3",
								"copy": null,
								"img": {
									"srcset": {
										"sizeList": [
											[
												280
											],
											[
												729
											],
											[
												1458
											]
										],
										"basePath": "/modules/c012_teaser_article/media/teaser_article_",
										"fileExtension": ".jpg"
									},
									"alt": "Alt Text"
								},
								"link": {
									"label": "Artikel lesen",
									"url": "#",
									"title": "Sehr kurze Headline"
								},
								"categoryLink": {
									"url": "#",
									"label": "Ausbildung und Wissen"
								},
								"commentsLink": null,
								"sharesLink": null
							}
						},
						{
							"partial": "modules/c012_teaser_article/c012_teaser_article",
							"data": {
								"date": {
									"readable": "11.12.2017",
									"machine": "2017-12-11"
								},
								"headline": "Sehr kurze Headline",
								"headlineTag": "h3",
								"copy": null,
								"img": {
									"srcset": {
										"sizeList": [
											[
												280
											],
											[
												729
											],
											[
												1458
											]
										],
										"basePath": "/modules/c012_teaser_article/media/teaser_article_",
										"fileExtension": ".jpg"
									},
									"alt": "Alt Text"
								},
								"link": {
									"label": "Artikel lesen",
									"url": "#",
									"title": "Sehr kurze Headline"
								},
								"categoryLink": {
									"url": "#",
									"label": "Ausbildung und Wissen"
								},
								"commentsLink": null,
								"sharesLink": null
							}
						},
						{
							"partial": "modules/c012_teaser_article/c012_teaser_article",
							"data": {
								"date": {
									"readable": "11.12.2017",
									"machine": "2017-12-11"
								},
								"headline": "Das ist der Titel dieses interessanten Beitrags",
								"headlineTag": "h3",
								"copy": null,
								"img": {
									"srcset": {
										"sizeList": [
											[
												280
											],
											[
												729
											],
											[
												1458
											]
										],
										"basePath": "/modules/c012_teaser_article/media/teaser_article_",
										"fileExtension": ".jpg"
									},
									"alt": "Alt Text"
								},
								"link": {
									"label": null,
									"url": "#",
									"title": "Sehr kurze Headline"
								},
								"categoryLink": {
									"url": "#",
									"label": "Sportklettern"
								},
								"commentsLink": {
									"url": "#",
									"label": "10 Kommentare"
								},
								"sharesLink": {
									"url": "#",
									"label": "13 mal geteilt"
								}
							}
						}
					]
				}
			},
			"link": null
		}
	]
}

The first to items are not expandable and directly link to a page.

Data

{
	"list": [
		{
			"id": "example-content-2-1",
			"headline": "SAC-Tourenportal",
			"headlineTag": "h4",
			"copy": "Finde deine Traumroute",
			"icon": "tourenportal",
			"module": null,
			"link": {
				"url": "/pages/detail/detail.html",
				"target": null
			}
		},
		{
			"id": "example-content-2-2",
			"headline": "SAC-Shop",
			"headlineTag": "h4",
			"copy": "Bücher, Karten und Club-Artikel",
			"icon": "shopping-bag",
			"module": null,
			"link": {
				"url": "/pages/detail/detail.html",
				"target": null
			}
		},
		{
			"id": "example-content-2-3",
			"headline": "Mitgliedschaft",
			"headlineTag": "h4",
			"copy": "Jetzt Mitglied werden",
			"icon": "membership",
			"odule": null,
			"link": {
				"url": "/pages/detail/detail.html",
				"target": null
			}
		}
	]
}

Variant for testing more icons

Data

{
	"list": [
		{
			"id": "example-content-3-1",
			"headline": "SAC-Tourenportal",
			"headlineTag": "h4",
			"copy": "Finde deine Traumroute",
			"icon": "tourenportal",
			"module": null,
			"link": {
				"url": "/pages/detail/detail.html",
				"target": null
			}
		},
		{
			"id": "example-content-3-2",
			"headline": "SAC-Shop",
			"headlineTag": "h4",
			"copy": "Bücher, Karten und Club-Artikel",
			"icon": "envelope-moving",
			"module": null,
			"link": {
				"url": "/pages/detail/detail.html",
				"target": null
			}
		},
		{
			"id": "example-content-3-3",
			"headline": "Mitgliedschaft",
			"headlineTag": "h4",
			"copy": "Jetzt Mitglied werden",
			"icon": "gift",
			"odule": null,
			"link": {
				"url": "/pages/detail/detail.html",
				"target": null
			}
		}
	]
}

Template

<div class="m-slide-in-panel l-box l-box--custom" data-init="SlideInPanel"{{{moduleAttributes this}}}>
	<div class="m-slide-in-panel__outer-wrapper">
		<div class="m-slide-in-panel__wrapper">
			{{#each list}}
				<div class="m-slide-in-panel__item" data-js-binding="SlideInPanel-item" data-accordion-item>
					<div>
						<a class="m-slide-in-panel__button" {{#if module}}href="#{{id}}" data-js-binding="SlideInPanel-button" role="tab"{{else}}href="{{link.url}}"{{#if link.target}} target="{{link.target}}"{{/if}}{{/if}}>
							{{#if icon}}
								<span class="m-slide-in-panel__icon-wrapper">
									<svg class="m-slide-in-panel__icon svg" aria-hidden="true"><use xlink:href="{{@root.global.svgSprite}}#icon-{{icon}}"></use></svg>
								</span>
							{{/if}}
							<div class="m-slide-in-panel__text">
								<{{headlineTag}} class="m-slide-in-panel__headline fs-h4">{{headline}}</{{headlineTag}}>
								<p class="m-slide-in-panel__copy fs-copy">{{{copy}}}</p>
							</div>
							{{#if module}}
								<svg class="m-slide-in-panel__arrow m-slide-in-panel__arrow--down svg" aria-hidden="true"><use xlink:href="{{@root.global.svgSprite}}#icon-arrow1-down"></use></svg>
								<svg class="m-slide-in-panel__arrow m-slide-in-panel__arrow--up svg" aria-hidden="true"><use xlink:href="{{@root.global.svgSprite}}#icon-arrow1-up"></use></svg>
							{{else}}
								<svg class="m-slide-in-panel__arrow svg" aria-hidden="true"><use xlink:href="{{@root.global.svgSprite}}#icon-arrow1-right"></use></svg>
							{{/if}}
						</a>
					</div>
					{{#if module}}
						<div class="m-slide-in-panel__body" id="{{id}}" role="tabpanel" data-js-binding="SlideInPanel-panel" data-tab-content>
							{{#with module}}
								{{> (lookup . 'partial') data }}
							{{/with}}
						</div>
					{{/if}}
				</div>
			{{/each}}
		</div>
	</div>
</div>

Global Data

{
	"global": {
		"lang": "de",
		"locale": "de-CH",
		"svgSprite": "/assets/media/svg/svg-sprite.svg",
		"transparentPixel": "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
		"season": "summer",
		"api": {
			"suisseAlpine": "https://dev.suissealpine.sac-cas.ch/api",
			"sacRouteDetail": "https://dev.web.sac-cas.ch/de/?type=1567765346410&tx_usersaccas2020_sac2020[routeId]=",
			"sacRoutePassTrough": "https://dev.web.sac-cas.ch/de/?type=1567765346411&tx_usersaccas2020_sac2020[routeId]=",
			"uploadProfileImage": "https://dev.web.sac-cas.ch/?eID=routing&route=usersaccassite/users/current/uploadProfileImage",
			"deleteProfileImage": "https://dev.web.sac-cas.ch/?eID=routing&route=usersaccassite/users/current/deleteProfileImage",
			"aimeosShop": "https://dev.web.sac-cas.ch/de/shop/shopapi/",
			"mailchimpForm": "https://sac-cas.us2.list-manage.com/subscribe/post?u=466a37a029f12e4df9e7a2a1f&id=ee3f0f3cf3",
			"collections": "https://collectionsdev.web.sac-cas.ch/api",
			"hrs": "https://www.alpsonline.org/hut-web-service?wsdl"
		},
		"baseAimeosUploadPath": "https://dev.web.sac-cas.ch/uploads/tx_aimeos/",
		"mapIframeUrl": "/modules/m030_map/media/map_iframe.html",
		"baseDestinationLinkUrl": "/pages/destination_summit/destination_summit.html?",
		"destinationLinkRouteAnchor": "route",
		"baseJourneyLinkUrl": "https://dev.web.sac-cas.ch/de/redirect/google-maps-routing/lv03/",
		"routeCollectionLinkUrl": "https://dev.web.sac-cas.ch/de/mein-sac/uebersicht/",
		"hrsLinkUrl": "https://www.alpsonline.org/reservation/wizard?header=yes&hut_id={{hutId}}&selectedDate={{date}}",
		"schweizMobilImportUrl": "https://map.schweizmobil.ch/?showDialog=importcoordinates&showLogin&coordinates={{coordinates}}",
		"geologyImageUrl": "https://www.sac-cas.ch/fileadmin/Huetten_und_Touren/Tourenportal/Gesteinszonenkarten/Hovercard/{{image}}.jpg",
		"features": {
			"archive": true
		},
		"translations": {
			"disciplines": {
				"mountain_hiking": "Berg- und Alpinwandern",
				"alpine_tour": "Hochtour",
				"climbing": "Klettern",
				"alpine_climbing": "Alpinklettern",
				"via_ferrata": "Klettersteig",
				"ski_tour": "Skitour",
				"snowshoe_tour": "Schneeschuhtour",
				"archive": "Routenarchiv"
			},
			"types": {
				"summit": "Gipfel",
				"hut": "Hütte",
				"traverse": "Übergang",
				"marking_point": "Markanter Punkt",
				"departure_arrival": "Ausgangp./Talort",
				"climbing_area": "Klettergebiet"
			},
			"markingPoints": {
				"lake": "See",
				"catering": "Einkehr",
				"waterfall": "Wasserfall",
				"cave": "Höhle",
				"bridge": "Brücke",
				"alp": "Alpe",
				"other": "Sehenswürdigkeit"
			},
			"difficulties": {
				"alpine_tour": {
					"L": "L",
					"WS": "WS",
					"ZS": "ZS",
					"S": "S",
					"SS": "SS",
					"AS": "AS"
				},
				"ski_tour": {
					"L": "L",
					"WS": "WS",
					"ZS": "ZS",
					"S": "S",
					"SS": "SS",
					"AS": "AS"
				}
			},
			"altitudeSuffix": "m ü.M.",
			"altitudeDifferenceUnit": "hm",
			"hoursUnit": "h",
			"difficulty": "Schwierigkeit",
			"ascent": "Aufstieg",
			"descent": "Abstieg",
			"route": "Route",
			"routes": "Routen",
			"segment": "Routenabschnitt",
			"segments": "Routenabschnitte",
			"approach": "Zustieg",
			"approaches": "Zustiege",
			"sector": "Sektor",
			"sectors": "Sektoren",
			"hut": "Hütte",
			"hutPrivate": "Hütte Privat",
			"hutFilter": "Hüttenfinder",
			"situationWarning": "Zustandswarnung",
			"protectionRule": "Schutzbestimmung",
			"archiveRoute": "Archivroute",
			"archiveRoutes": "Archivrouten",
			"map": {
				"map": "Karte",
				"legend": "Legende",
				"zoomIn": "Reinzoomen",
				"zoomOut": "Rauszoomen",
				"enterFullscreenMode": "Vollbildmodus starten",
				"leaveFullscreenMode": "Vollbildmodus verlassen",
				"searchLabel": "Region, Gipfel, Hütte, Talort, POI, …",
				"disciplineSettings": "Disziplinen Einstellungen",
				"layerSettings": "Ergänzende Kartenebenen",
				"geolocate": "Lokalisieren",
				"searchInView": "In diesem Gebiet suchen",
				"waypointDrawing": "Auf Karte zeichnen",
				"drawWaypoints": "Route zeichnen",
				"removeWaypoints": "Route löschen",
				"exportWaypoints": "GPX downloaden",
				"saveInSchweizMobil": "Speichern|SchweizMobil Plus",
				"moreInFullscreen": "Entdecke weitere Funktionen auf der Vollbildkarte:<br>- Zeichne deine eigenen Tracks",
				"baseLayers": {
					"pois": "Tourenziele, Hütten",
					"routes": "Routen"
				},
				"additionalLayers": {
					"summer": "Sommer",
					"winter": "Winter",
					"hikingTrails": "Wanderwege",
					"closedHikingTrails": "Gesperrte Wanderwege",
					"wildlifeReserves": "Wildschutzgebiete",
					"skiTours": "swisstopo Skitouren",
					"designatedWildlifeAreas": "Wildruhezonen",
					"publicTransportStops": "ÖV-Stationen",
					"slopesOver30": "Hangneigung ab 30°",
					"protectionRules": "Schutzbestimmungen",
					"situationWarnings": "Zustandswarnungen",
					"geology": "Gesteinszonenkarte",
					"alpGuardDogs": "Herdenschutzhunde",
					"armyShooting": "Schiessanzeigen",
					"snowCover": "Schneeabdeckung",
					"snowDepth": "Schneehöhe"
				},
				"layerOpacity": "Deckkraft aktiver Karten",
				"foregroundOpacity": "Deckkraft aktiver Disziplinen und Hütten",
				"backgroundOpacity": "Deckkraft inaktiver Disziplinen und Hütten",
				"reset": "Zurücksetzen"
			},
			"mapHoverCard": {
				"publicTransport": "Öffentlicher Verkehr",
				"parkingInformations": "Parkinformationen",
				"planJourneyPublicTransport": "Anreise",
				"searchPublicTransport": "Verbindung suchen (SBB)",
				"planJourneyCar": "Anreise Google Maps",
				"downloadWaypoint": "Wegpunkt downloaden",
				"routeLinkLabel": "Route ansehen",
				"wildlifeReserve": "Wildschutzgebiet",
				"wildlifeArea": "Wildruhezone",
				"closedHikingTrail": "Sperrung / Umleitung Wanderweg",
				"alpGuardDogs": "Alpweide geschützt durch Herdenschutzhunde",
				"armyShooting": "Schiessanzeige und Gefahrenstelle",
				"legalBasis": "Grundlage",
				"additionalInformation": "Zusatzinformationen",
				"showDetails": "Details anzeigen",
				"moreOnMapAdminCh": "Mehr Informationen auf map.admin.ch",
				"currentSnowDepth": "Aktuelle Schneehöhe"
			},
			"protectionArea": {
				"lastUpdated": "zuletzt aktualisiert am {{lastUpdate}}",
				"validity": "gültig von {{validFrom}} bis {{validUntil}}",
				"validityEstimated": "gültig von {{validFrom}} bis voraussichtlich {{validUntil}}",
				"validFrom": "gültig ab {{validFrom}}",
				"validUntil": "gültig bis {{validUntil}}",
				"validUntilEstimated": "gültig bis voraussichtlich {{validUntil}}",
				"generallyValid": "generell gültig"
			},
			"collections": {
				"addRouteToCollection": "Route merken",
				"selectCollection": "Merkliste auswählen",
				"selectRoute": "Welche Route(n) dieses Tourenziels möchtest du dir merken?",
				"selectRouteError": "Bitte wähle eine Route aus.",
				"addToCollection": "Merken",
				"cancel": "Abbrechen",
				"routeAddedToCollection": "Die ausgewählte Route(n) wurden zu deiner Merkliste hinzugefügt.",
				"createNew": "Neue Liste",
				"close": "Schliessen",
				"goToCollection": "Zur Merkliste",
				"alreadyCollectedIn": "Bereits gemerkt auf"
			}
		},
		"basePublicTransportLinkUrl": "https://www.sbb.ch/en/buying/pages/fahrplan/fahrplan.xhtml?language=en&nach=",
		"snowDepthInfoUrl": "https://www.sac-cas.ch",
		"snowCoverInfoUrl": "https://www.sac-cas.ch",
		"destinationFallbackImages": {
			"summit": {
				"srcset": {
					"sizeList": [
						[
							600
						],
						[
							1200
						],
						[
							2048
						]
					],
					"urlList": [
						"/modules/c015_teaser_destination/media/summit_600.jpg",
						"/modules/c015_teaser_destination/media/summit_1200.jpg",
						"/modules/c015_teaser_destination/media/summit_2048.jpg"
					]
				}
			},
			"hut": {
				"srcset": {
					"sizeList": [
						[
							600
						],
						[
							1200
						]
					],
					"urlList": [
						"/modules/c015_teaser_destination/media/hut_600.jpg",
						"/modules/c015_teaser_destination/media/hut_1200.jpg",
						"/modules/c015_teaser_destination/media/hut_2048.jpg"
					]
				}
			}
		},
		"map": {
			"news": [
				{
					"label": "Neu",
					"copy": "Jetzt auch <b>GPX downloaden</b>",
					"type": "waypointDrawing"
				},
				{
					"label": "Neu",
					"copy": "Jetzt Deckkraft für jede Ebene einstellbar",
					"type": "layerSettings"
				}
			],
			"metaLinkList": [
				{
					"url": "https://www.swisstopo.admin.ch/",
					"label": "© swisstopo (5701325910)"
				},
				{
					"url": "/pages/map_legend/map_legend.html",
					"label": "Hilfe & Legende"
				},
				{
					"url": "#",
					"label": "Haftungsausschluss"
				}
			]
		}
	}
}

Documentation

Description

Kommt nur auf der Home zum Einsatz

Responsives Verhalten

Small = Accordion mit max. 3 Einträgen
Medium = Tabs mit max. 2 Einträgen
Large++ = Tabs mit max. 3 Einträgen

Minium ist jeweils 1 Eintrag

Es wird erwartet, dass der Headline und Copy max. 3 Zeilen ist. Aktuell kürzt das FE soweit der Browser-Support vorhanden ist ab und zeigt »…« als Abschluss.

Integration

Copy HTML.