The FCC Group will share its prospects for the future at Sondersland, the world's largest youth talent festival, which will take place on 17, 18 and 19 September in a new climate following the health crisis
An error occurred while processing the template.
Java method "static com.liferay.portal.kernel.json.JSONFactoryUtil.createJSONObject(String)" threw an exception; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign jsonfilter = jsonFactoryUtil... [in template "12187455#12187494#18635423" at line 36, column 49] ----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
2<#assign current_article_url = themeDisplay.getURLCurrent() />
3<#assign twitter_username = "@FCC_Group" />
4<#assign group_id = themeDisplay.getScopeGroupId() />
5
6 ${current_article_url}
7 <#if current_article_url?contains("/-/") >
8 <#assign article_url = current_article_url[current_article_url?index_of('/-/')+3..] />
9 ${article_url}
10
11 <#if validator.isNotNull(journalArticleLocalService.getArticleByUrlTitle(group_id, "${article_url}")) >
12
13 <#assign articleimage = journalArticleLocalService.getArticleByUrlTitle(group_id, "${article_url}") />
14
15 <#if articleimage.getDDMStructure().getNameCurrentValue() == "EST_NOTICIA">
16 <#assign saxReaderUtil = serviceLocator.findService("com.liferay.portal.kernel.xml.SAXReaderUtil") />
17 <#assign dlAppLocalServiceUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService") />
18 <#assign jsonFactoryUtil = serviceLocator.findService("com.liferay.portal.kernel.json.JSONFactoryUtil") />
19 <#assign document = saxReaderUtil.read(articleimage.getContentByLocale(locale)) />
20 <#assign document_root = document.getRootElement() />
21 <#if validator.isNotNull(document.selectSingleNode("//dynamic-element[@name='txt_titulo']/dynamic-content")) >
22 <#assign title = document.selectSingleNode("//dynamic-element[@name='txt_titulo']/dynamic-content").getText() />
23 <#else>
24 <#assign title = "" />
25 </#if>
26
27 <#if validator.isNotNull(document.selectSingleNode("//dynamic-element[@name='txt_entradilla']/dynamic-content")) >
28 <#assign description = document.selectSingleNode("//dynamic-element[@name='txt_entradilla']/dynamic-content").getText() />
29 <#else>
30 <#assign description = title/>
31 </#if>
32 <#if validator.isNotNull(document.selectSingleNode("//dynamic-element[@name='txt_titulo']/dynamic-content")) && validator.isNotNull(document.selectSingleNode("//dynamic-element[@name='txt_entradilla']/dynamic-content"))>
33 <#assign xpath_selector = saxReaderUtil.createXPath("dynamic-element[@name='Imagen_destacada']") />
34 <#assign filterone = xpath_selector.selectSingleNode(document_root) />
35 <#assign filtered = filterone.getStringValue() />
36 <#assign jsonfilter = jsonFactoryUtil.createJSONObject(filtered) />
37 <#assign imageuuid = jsonfilter.getString('uuid') />
38 <#assign imname = jsonfilter.getString('title') />
39 <#assign filentry = dlAppLocalServiceUtil.getFileEntryByUuidAndGroupId(imageuuid, group_id) />
40 <#assign twitter_image_url = "${themeDisplay.getPortalURL()}/documents/${group_id}/${filentry.getFolderId()}/${imname}/${imageuuid}" />
41
42 <meta name="twitter:card" content="summary_large_image">
43 <meta name="twitter:site" content="${twitter_username}">
44 <meta name="twitter:creator" content="${twitter_username}">
45 <meta name="twitter:title" content="${title}">
46 <meta name="twitter:description" content="${htmlUtil.extractText(description)}">
47 <meta name="twitter:image" content="${twitter_image_url}" />
48 </#if>
49
50 </#if>
51 </#if>
52
53 </#if>