Workshops
Zurück
Für Schulklassen
Workshops
Lernen zum Anfassen und Ausprobieren
Schüler und Schülerinnen können sich einen Workshop-Platz aus dem neuen Highlight-Programm der Autostadt sichern; ihre Stärken ausbauen und neue Fähigkeiten in den Themenfeldern MINT, Nachhaltigkeit und Verantwortung, Lern- und Kreativitätstechniken oder Medien entwickeln. Sie kommen mit Profis ins Gespräch und vernetzen sich für die Zukunft. Willkommen im Autostadt Learnlab!
Fehler bei der Verarbeitung der Vorlage.
Negative range start index (-8) isn't allowed for a range used for slicing. The blamed expression: ==> startIndex..(endIndex - 1) [in template "19938729225950#20119#110751" at line 62, column 27] ---- FTL stack trace ("~" means nesting-related): - Failed at: #list visibleEntries[startIndex..(end... [in template "19938729225950#20119#110751" at line 62, column 5] ----
1<#assign splitUrlString = themeDisplay.getURLCurrent()?split("?") />
2<#if splitUrlString?size gt 1>
3 <#assign queryString = splitUrlString[1] />
4<#else >
5 <#assign queryString = "" />
6</#if>
7
8<#assign currentPage = 1>
9<#assign parameters = queryString?split("&") />
10<#assign paramName1 = "categoryId1" />
11<#assign paramName2 = "categoryId2" />
12<#assign selectedCategory1Id = "0" />
13<#assign selectedCategory2Id = "0" />
14
15<#list parameters as parameter>
16 <#assign keyValue = parameter?split("=") />
17 <#if keyValue[0]?ends_with(paramName1)>
18 <#assign selectedCategory1Id = keyValue[1] />
19 <#elseif keyValue[0]?ends_with(paramName2)>
20 <#assign selectedCategory2Id = keyValue[1] />
21 <#elseif keyValue[0]?ends_with("cur")>
22 <#assign currentPage = keyValue[1]?number />
23 </#if>
24</#list>
25
26<#assign visibleEntries = [] />
27<#if entries?has_content>
28 <#list entries as curEntry>
29 <#assign selectedCategory1Matches = false />
30 <#assign selectedCategory2Matches = false />
31
32 <#assign categories = curEntry.getCategories() />
33 <#assign selectedCategoryMatches = false />
34
35 <#list categories as category>
36 <#assign selectedCategory1Matches = selectedCategory1Matches || (selectedCategory1Id == "0" || (selectedCategory1Id?? && selectedCategory1Id?has_content && (category.getCategoryId() == selectedCategory1Id?number))) />
37 <#assign selectedCategory2Matches = selectedCategory2Matches || (selectedCategory2Id == "0" || (selectedCategory2Id?? && selectedCategory2Id?has_content && (category.getCategoryId() == selectedCategory2Id?number))) />
38 </#list>
39
40 <#if (!selectedCategory1Id?? && !selectedCategory2Id?? ) || (!selectedCategory1Id?has_content && !selectedCategory2Id?has_content) || (selectedCategory1Id == "0" && selectedCategory2Id == "0") || (selectedCategory1Matches && selectedCategory2Matches) >
41 <#assign visibleEntries = visibleEntries + ([curEntry.getAssetRenderer().getArticle()])>
42 </#if>
43 </#list>
44</#if>
45
46
47<#assign itemsPerPage = 8>
48<#assign totalItems = visibleEntries?size>
49<#assign totalPages = (totalItems / itemsPerPage) ? int>
50<#if (totalItems % itemsPerPage) gt 0>
51 <#assign totalPages = totalPages + 1>
52</#if>
53<#assign startIndex = (currentPage - 1) * itemsPerPage>
54
55<#if startIndex + itemsPerPage gt totalItems>
56 <#assign endIndex = totalItems>
57<#else >
58 <#assign endIndex = startIndex + itemsPerPage>
59</#if>
60
61<div class="as-workshops">
62 <#list visibleEntries[startIndex..(endIndex - 1)] as journalArticle>
63 <@liferay_journal["journal-article"]
64 articleId=journalArticle.getArticleId()
65 ddmTemplateKey="110382"
66 groupId=journalArticle.getGroupId()/>
67 </#list>
68
69 <div class="pagination content">
70 <#assign leftArrowStyle = "visibility: hidden;">
71 <#if currentPage gt 1>
72 <#assign leftArrowStyle = "visibility: visible;">
73 </#if>
74 <#assign rightArrowStyle = "visibility: hidden;">
75 <#if currentPage lt totalPages>
76 <#assign rightArrowStyle = "visibility: visible;">
77 </#if>
78
79 <a href="?cur=${currentPage - 1}&categoryId1=${selectedCategory1Id}&categoryId2=${selectedCategory2Id}"
80 class="navigation-left" style="${leftArrowStyle}"></a>
81
82 <#if totalPages gt 1>
83 <div class="pagination-pages">
84 <#list 1..totalPages as page>
85 <#if page == currentPage>
86 <span class="current">${page}</span>
87 </#if>
88 <#if page != currentPage>
89 <a href="?cur=${page}&categoryId1=${selectedCategory1Id}&categoryId2=${selectedCategory2Id}" class="page-number">${page}</a>
90 </#if>
91 </#list>
92 </div>
93 </#if>
94
95 <a href="?cur=${currentPage + 1}&categoryId1=${selectedCategory1Id}&categoryId2=${selectedCategory2Id}"
96 class="navigation-right" style="${rightArrowStyle}"></a>
97
98 </div>
99</div>