bandeau  haut de page

Foire aux questions

Asset Publisher

An error occurred while processing the template.
The following has evaluated to null or missing:
==> fieldThematique  [in template "10153#10191#1136868" at line 48, column 62]

----
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: #if fieldThematique != ""  [in template "10153#10191#1136868" at line 48, column 57]
----
1<#assign liferay_ui = taglibLiferayHash["/META-INF/liferay-ui.tld"] /> 
2<#assign liferay_portlet = taglibLiferayHash["/META-INF/liferay-portlet.tld"] /> 
3<#assign id = themeDisplay.getPortletDisplay().getId() /> 
4<#setting number_format="computer"> 
5 
6<#if entries?has_content> 
7    <div id="adt-article-faq"> 
8	<div class="panel-group" id="accordion-${id}" role="tablist" aria-multiselectable="true"> 
9		<#assign cptEntry = 1 /> 
10		<#list entries as curEntry>				 
11			<#assign assetRenderer = curEntry.getAssetRenderer() /> 
12			<#assign className = assetRenderer.getClassName() /> 
13			 
14			<#if className == "com.liferay.journal.model.JournalArticle" > 
15										 
16				<#assign journalArticle = assetRenderer.getArticle() />		 
17				<#assign document = saxReaderUtil.read(journalArticle.getContent()) />			 
18				<#assign rootElement = document.getRootElement() /> 
19				<#assign link = assetRenderer.getURLViewInContext(renderRequest, renderResponse, '') />		 
20 
21				<!------- initialisation des champs structure ----------------> 
22				<#assign formFieldValues = assetRenderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues() /> 
23				 
24				<#list formFieldValues as curFormField> 
25					<#assign FieldName = curFormField.getName() /> 
26					 
27					<#if FieldName == "Thematique" > 
28						<#assign fieldThematique = curFormField.getValue().getString(local) /> 
29					<#elseif FieldName == "Numero" > 
30						<#assign fieldNumero = curFormField.getValue().getString(local) /> 
31					<#elseif FieldName == "Question" > 
32						<#assign fieldQuestion = curFormField.getValue().getString(local) /> 
33					<#elseif FieldName == "Reponse" > 
34						<#assign FieldReponse = curFormField.getValue().getString(local) /> 
35					<#elseif FieldName == "Nom_du_document" > 
36						<#assign FieldNomDocument = curFormField.getValue().getString(local) /> 
37					<#elseif FieldName == "Nom_du_lien" > 
38						<#assign FieldNomLien = curFormField.getValue().getString(local) /> 
39					</#if> 
40				</#list> 
41									 
42				<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
43				 
44				 <div class="panel panel-default"> 
45					<div class="panel-heading" role="tab" id="heading${cptEntry}"> 
46					  <h4 class="panel-title"> 
47						<a role="button" data-toggle="collapse" data-parent="#accordion-${id}" href="#collapse-${id}-${cptEntry}" aria-expanded="true" aria-controls="collapse-${id}-${cptEntry}"> 
48							<#if fieldThematique != ""> 
49								${fieldThematique}&nbsp;-&nbsp; 
50							</#if> 
51							<#if fieldNumero != ""> 
52								${fieldNumero}.&nbsp; 
53							</#if> 
54							<#if fieldQuestion != ""> 
55								${fieldQuestion} 
56							</#if> 
57						</a> 
58					  </h4> 
59					</div> 
60					<div id="collapse-${id}-${cptEntry}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading${cptEntry}"> 
61					  <div class="panel-body"> 
62						<#if FieldReponse != ""> 
63							<p>${FieldReponse}</p> 
64						</#if>		 
65						 
66						<!-- Documents --> 
67						<#assign documents = document.selectNodes( "//dynamic-element[@name='Nom_du_document']") /> 
68						<#list documents as document> 
69							<#if document.valueOf( "dynamic-content")??> 
70								<#assign fileLabel = document.valueOf( "dynamic-content") /> 
71 
72								<#if document.valueOf( "//dynamic-element[@name='Documents_and_Media3253']")??> 
73									<#assign fileLink = document.valueOf( "//dynamic-element[@name='Documents_and_Media3253']") /> 
74									<#else> 
75										<#assign fileLink="#" /> 
76								</#if> 
77								<a class="article-document-faq article-document" href="${fileLink?trim}" target="_blank">${fileLabel?trim}</a> 
78								<br /> 
79							</#if> 
80						</#list> 
81						 
82						<!-- Links -->		 
83						<#assign links = document.selectNodes( "//dynamic-element[@name='Nom_du_lien']") /> 
84						<#list links as link> 
85							<#if link.valueOf( "dynamic-content")??> 
86								<#assign pageLabel = link.valueOf( "dynamic-content") /> 
87								<#if link.valueOf( "//dynamic-element[@name='Lien_à_la_page3504']")??> 
88									<#assign pageLink = link.valueOf( "//dynamic-element[@name='Lien_à_la_page3504']") /> 
89									<#assign layoutID = pageLink?split("@")?first?trim /> 
90									<#assign groupID = pageLink?split("@")?last?trim /> 
91									 
92									<#if layoutID != "" && groupID != ""> 
93										<#assign layoutIDnumber = layoutID?number /> 
94										<#assign groupIDnumber = groupID?number /> 
95										<#assign layoutLocalService = serviceLocator.findService('com.liferay.portal.service.LayoutLocalService') /> 
96										<#assign pageLayout = layoutLocalService.getLayout(groupIDnumber, false, layoutIDnumber) /> 
97										 
98										<#-- get Friendly URL --> 
99										<#assign portalUtil = staticUtil["com.liferay.portal.util.PortalUtil"]> 
100										<#assign pageLink = portalUtil.getLayoutFriendlyURL(pageLayout, themeDisplay)> 
101									</#if> 
102								<#else> 
103									<#assign pageLink="#" /> 
104								</#if> 
105								<a class="article-link-faq article-link" href="${pageLink}" target="_blank">${pageLabel?trim}</a> 
106								<br /> 
107							</#if> 
108						</#list> 
109						</div> 
110					</div> 
111				 </div> 
112				<#assign cptEntry = cptEntry + 1 />  
113			</#if> 
114		</#list> 
115	</div> 
116	</div> 
117<#else> 
118	${renderRequest.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", true)} 
119</#if> 

JT - 2019 - contact

Le 4

4 rue Aimé Rasseteau
86100 Châtellerault

05 49 23 70 00

le4@grand-chatellerault.fr