Welcome
Our goal is to coordinate, initiate and develop geostrategic analysis, debates and outlooks in order to strengthen the transregional cooperation in Latin America regarding the topics of climate change, energy and environmental policies. Hereby, the involvement of European and German players is highly important to us.
Media library
An error occurred while processing the template.
The following has evaluated to null or missing: ==> data.href [in template "kas-de-theme_SERVLET_CONTEXT_/templates/macros/page-modules/PMContextPublications.ftl" at line 24, column 94] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${data.href} [in template "kas-de-theme_SERVLET_CONTEXT_/templates/macros/page-modules/PMContextPublications.ftl" in macro "PMPublication" at line 24, column 92] - Reached through: @PMPublication item, index [in template "kas-de-theme_SERVLET_CONTEXT_/templates/macros/page-modules/PMContextPublications.ftl" in macro "PMPublications" at line 99, column 21] - Reached through: @PMPublications tilesId, content.item... [in template "kas-de-theme_SERVLET_CONTEXT_/templates/macros/page-modules/PMContextPublications.ftl" in macro "PMContextPublications" at line 119, column 13] - Reached through: @PMContextPublications "ADT_KASDE_REL... [in template "252001#252047#252677" at line 77, column 7] ----
1<#-- used @ Themen-Detailseite "Publikationen zum Thema" -->
2<#--
3 should render a Publikationen-Slider related to the displayed "Thema" with Title, Category, Image and Href and a Cta "Alle anzeigen" linking to the publication-overview
4-->
5
6<#include "${fullTemplatesPath}/functions/relatedContentUtil.ftl" />
7<#include "${fullTemplatesPath}/macros/debugging.ftl" />
8<#include "${fullTemplatesPath}/functions/liferayServicesUtil.ftl" />
9<#include "${fullTemplatesPath}/functions/pageUtil.ftl" />
10<#include "${fullTemplatesPath}/functions/categoriesUtil.ftl" />
11
12<#include "${fullTemplatesPath}/macros/page-modules/PMContextPublications.ftl" />
13
14
15<#assign
16themeDisplay = getThemeDisplay()
17locale = themeDisplay.getLocale()
18layout = themeDisplay.getLayout()
19layouttpl = layout.getTypeSettingsProperties().getProperty("layout-template-id")
20editmode = FrontendService.user.isPrivilegedUser(themeDisplay)
21/>
22
23<#if entries?has_content>
24 <#assign items = [] >
25
26 <#list entries as entry>
27
28 <#assign
29 primaryKey = entry.classPK?number
30
31 jsonString = FrontendService.article.getWebcontent(primaryKey)
32 json = FrontendService.json.parseAsJson(jsonString)
33
34 title = entry.getTitle(locale)
35 data = getRelatedPublication(json, locale, primaryKey, themeDisplay, FrontendService, ["primaryKey", "title", "category", "persons", "erscheinungsdatum", "start", "image", "href", "meta", "subtitle", "author", "alt"])
36 />
37 <@debugJsonString jsonString "ADT_KASDE_RELATED_PUBLIKATIONEN" />
38
39 <#assign items = items + [data] >
40
41 </#list>
42
43<#-- only if a custom portlet title was enabled and is set for the user's locale within the Asset Publisher's look-and-feel settings, we show that custom title instead of the default behavior using our locale translation keys (requested in KASWO-27) -->
44 <#if portletPreferences["portletSetupUseCustomTitle"]?has_content && portletPreferences["portletSetupUseCustomTitle"][0]?has_content && (portletPreferences["portletSetupUseCustomTitle"][0] == "true") && portletPreferences["portletSetupTitle_"+locale]?has_content && portletPreferences["portletSetupTitle_"+locale][0]?has_content >
45 <#assign headline = portletPreferences["portletSetupTitle_"+locale][0] />
46 <#else>
47 <#assign headline = languageUtil.get(locale, "publikationen.zum.thema")/>
48 <#if layouttpl?contains("LAYOUT_KASDE_MICROSITE_HOME") || layouttpl?contains("LAYOUT_KASDE_HOME")>
49 <#assign headline = languageUtil.get(locale, "aktuelle.publikationen")/>
50 </#if>
51 </#if>
52
53 <#assign
54 publicationLayout = FrontendService.page.getLayoutByGermanFriendlyUrl(themeDisplay.getScopeGroupId(), "/publikationen")
55 href = publicationLayout.getFriendlyURL(locale)
56 />
57 <#if themeDisplay.getURLCurrent()?contains("/web/") >
58 <#assign currentURL = themeDisplay.getURLCurrent() />
59 <#if currentURL?contains("/home") >
60 <#assign currentURL= currentURL?replace("/home", "") />
61 </#if>
62 <#if currentURL?contains("?") >
63 <#assign href = currentURL?split('?')[0] + href + "?" + currentURL?split('?')[1] />
64 <#else>
65 <#assign href = currentURL + href />
66 </#if>
67 </#if>
68
69 <#assign
70 cta = {
71 "text" : languageUtil.get(locale, "alle.publikationen"),
72 "href": href
73 }
74 />
75
76 <div class="o-page-module">
77 <@PMContextPublications "ADT_KASDE_RELATED_PUBLIKATIONEN" { "items": items, "cta": cta } headline "" "secondary"/>
78 </div>
79
80<#elseif (editmode?? && editmode)>
81 <@errorMessage languageUtil.get(locale, "es.existieren.keine.entries") "ADT_KASDE_RELATED_PUBLIKATIONEN" layouttpl />
82</#if>