Header

Aggregatore Risorse

Si è verificato un errore nell'elaborarazione del modello.
Failed to "?eval" string with this error:

---begin-message---
Syntax error in ?eval-ed string in line 1, column 30:
Lexical error: encountered "u" (117), after "\"L\\".
---end-message---

The failing expression:
==> docXml.valueOf("//dynamic-element[@name='ImmagineCard']/dynamic-content/text()")?eval  [in template "20099#20135#1138342" at line 17, column 64]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: immagineSoIn = docXml.valueOf("//dyna...  [in template "20099#20135#1138342" at line 17, column 49]
	- Reached through: #assign-container  [in template "20099#20135#1138342" at line 12, column 41]
----
1<#assign  
2	tagUrl = themeDisplay.getURLCurrent()?split("/") 
3	tagName = heraTemplateCustomService.convertUtf8toUnicode(tagUrl?last) 
4/> 
5<section class="extraContentFullWrapper"> 
6	<div class="card"> 
7		<div class="card__exteranalWrapper"> 
8			<h1 class="tags__header"> Hai filtrato per: "${tagName}" </h1> 
9			<div class="card__allCardscontainer"> 
10			<#if entries?has_content> 
11				<#list entries as curEntry> 
12					<#assign 
13						assetRenderer = curEntry.getAssetRenderer() 
14						articoloUrl = curEntry.getAssetRenderer().getArticle().getUrlTitle() 
15						docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale.toString())) 
16						titolo = docXml.valueOf("//dynamic-element[@name='Titolo']/dynamic-content/text()")			 
17						immagineSoIn = docXml.valueOf("//dynamic-element[@name='ImmagineCard']/dynamic-content/text()")?eval 
18						immagineStrGroupID = immagineSoIn.groupId 
19						immagineStrName = immagineSoIn.name 
20						immagineStrUUID = immagineSoIn.uuid 
21						<#--	fileEntryImage =  
22						serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService").fetchDLFileEntryByUuidAndGroupId(immagineStrUUID, 
23						 immagineStrGroupID?number)--> 
24						fileEntryImage= heraContributorLocalService.fetchDLFileEntryByUuidAndGroupId(immagineStrUUID, immagineStrGroupID?number) 
25						immagineStrFolderId = (fileEntryImage??)?then(fileEntryImage.getFolderId(), "") 
26						link = docXml.valueOf("//dynamic-element[@name='CTADettaglioArticolo']/dynamic-content/text()") 
27						values = link?split("@") 
28						ctaURL = "" 
29					/> 
30					<#assign immagineUrl = "" /> 
31					<#if immagineStrGroupID?? && immagineStrName?? && immagineStrUUID?? && immagineStrFolderId?has_content> 
32						<#assign  
33							immagineUrl = "/documents/" + immagineStrGroupID + "/${immagineStrFolderId}/" + immagineStrName + "/" + immagineStrUUID  
34						/> 
35					</#if> 
36					<#attempt> 
37					<#if values?has_content>						 
38						<#if (values?size > 2)> 
39							<#assign groupId= values[2]?number/> 
40						</#if> 
41						<#assign layoutId=values[0]?number/> 
42						<#if values[1]?contains("public")> 
43							<#assign privateLayout = false/> 
44						<#else> 
45							<#assign privateLayout = true/> 
46						</#if> 
47						<#assign 
48							<#--		pageLayout = layoutLocalService.getLayout(groupId, privateLayout, layoutId) --> 
49							pageLayout = heraContributorLocalService.getLayout(groupId, privateLayout, layoutId) 
50							ctaURL = pageLayout.getFriendlyURL()  
51						/> 
52					</#if> 
53					<#recover> 
54					</#recover> 
55					<a class="card__wrapper" href="${ctaURL}" > 
56						<div class="card__internalWrapper"> 
57							<img src="${immagineUrl}" alt="highlightsCard" class="card__img"> 
58							<div class="card__details">  
59								<#list curEntry.getTags() as tag> 
60									<span class="card__tag">${tag.name}</span> 
61								</#list> 
62								<p class="card__description">${titolo}</p> 
63							</div> 
64						</div> 
65					</a> 
66				</#list> 
67			</#if> 
68			</div> 
69		</div> 
70	</div> 
71</section>