Er trad een fout op tijdens de verwerking van de sjabloon.
Expression button.icon is undefined on line 112, column 53 in 10155#10193#1100154.
1<#-- 
2Web content templates are used to lay out the fields defined in a web 
3content structure. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8 
9<#assign jls = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService") /> 
10<#assign curArticle = jls.getLatestArticle(groupId, .vars['reserved-article-id'].data)  /> 
11  
12<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
13<#assign httpServletRequest = serviceContext.getRequest()> 
14<#assign portletId = getterUtil.getString(httpServletRequest.getParameter("p_p_id"), "") /> 
15<h2 class="portlet-title web-content-header-title"> 
16<span class="portlet-title-text">${.vars['reserved-article-title'].data}</span> 
17</h2> 
18 
19<#assign isPDFExport = getterUtil.getBoolean(httpServletRequest.getAttribute("pdf-export"),false) /> 
20 
21<#assign themeDisplay = serviceContext.getThemeDisplay() /> 
22<#assign layout = themeDisplay.getLayout()> 
23<#assign group = layout.getGroup()/> 
24<#assign enablePDFDownload = group.getExpandoBridge().getAttribute('enable-pdf-download') /> 
25<#assign enablePrint = group.getExpandoBridge().getAttribute('enable-printing') /> 
26 
27<#if !(isPDFExport)> 
28	<div class="other-options"> 
29		<#if (enablePDFDownload) > 
30    		<a href="#" class="pdf">pdf</a> 
31    	</#if> 
32    	<#if (enablePrint) > 
33			<a href="#" class="print">print</a> 
34		</#if> 
35	</div> 
36</#if> 
37  
38<div class="pg-content web-content-list"> 
39<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()> 
40<#assign httpServletRequest = serviceContext.getRequest()> 
41 <#assign backUrl =''/> 
42  <#assign PortalUtil = staticUtil["com.liferay.portal.util.PortalUtil"] /> 
43  
44  <#attempt> 
45  <#if httpServletRequest.getHeader("referer")??> 
46    <#assign backUrl=httpServletRequest.getHeader("referer") > 
47    <#assign currentCompleteURL=PortalUtil.getCurrentCompleteURL(httpServletRequest) /> 
48    <#assign currentDomain=httpUtil.getDomain(currentCompleteURL)> 
49    <#assign backUrlDomain=httpUtil.getDomain(backUrl)> 
50    <#if (currentDomain==backUrlDomain)> 
51       <#assign filterIndex=backUrl?index_of("/filter?")> 
52       <#if (filterIndex>0)> 
53         <#assign backUrl =''/> 
54       </#if> 
55    <#else> 
56         <#assign backUrl =''/> 
57    </#if> 
58   </#if> 
59 <#recover> 
60    <#assign backUrl =''/> 
61 </#attempt> 
62  
63  <#if (backUrl!='')> 
64<div class="taglib-header "> 
65<#if (portletId!="" && !(portletId?contains("56_INSTANCE_")))> 
66<h3 class="header-title"> 
67<span class="pull-left"> 
68<#if validator.isNotNull(portalUtil.escapeRedirect(backUrl))> 
69<#assign backUrl= htmlUtil.escapeHREF(portalUtil.escapeRedirect(backUrl))> 
70<a class="icon-circle-arrow-left previous-level" href="${backUrl}" title="<@liferay.language key='back' />"> 
71<@liferay.language key='back' /> 
72</a> 
73</#if> 
74</span> 
75 
76 </h3> 
77 </#if> 
78</div> 
79 </#if> 
80<#if (abstract_image.getData()!='')> 
81<img src="${abstract_image.getData()}" class="img-rounded pull-right abstract-image"/> 
82</#if> 
83<div class="caption abstract"> 
84${abstract_description.getData()} 
85</div> 
86<#if subTitle?has_content> 
87    <#if subTitle.getData()!=""> 
88    <h2>${subTitle.getData()}</h2> 
89    </#if> 
90</#if> 
91 
92${para1.getData()} 
93<div class="row-fluid button-container"> 
94     <#if buttons?has_content> 
95	<#list buttons.getSiblings() as button> 
96		<#assign internalURL = "${button.internalURL.getData()}"> 
97					<#assign externalURL = "${button.externalURL.getData()}"> 
98					<#assign downloadURL = "${button.downloadURL.getData()}"> 
99					<#assign bottonLabel = "${button.getData()}">			 
100				<#assign bottonURL = "">				  
101				<#if (internalURL != '')> 
102 			<#assign bottonURL = button.internalURL.getFriendlyUrl()> 
103<#elseif (externalURL != '')> 
104	<#assign bottonURL = externalURL> 
105 <#elseif (downloadURL != '')> 
106	<#assign bottonURL = downloadURL> 
107</#if> 
108	<#if ((bottonLabel != '') && (bottonURL != ''))> 
109	 <a class="btn btn-primary" href="${bottonURL}"   target="${button.urlTarget.getData()}"  title="${button.getData()}" > 
110						${bottonLabel} 
111					  
112					<i class="${button.icon.getData()}" style="color:${button.iconColor.getData()}"></i> 
113	</a> 
114					 </a> 
115					 </#if> 
116	 
117 
118</#list> 
119</#if> 
120</div> 
121</div> 
122 
123<#assign PortalUtil = staticUtil["com.liferay.portal.util.PortalUtil"] /> 
124<#assign currentCompleteURL=PortalUtil.getCurrentCompleteURL(httpServletRequest) /> 
125 
126<#if (portletId!="" && !(portletId?contains("56_INSTANCE_")) && !(currentCompleteURL?contains("/page-")) )> 
127<#assign portletId = htmlUtil.escape(portletId)> 
128<#assign containerId = "#portlet_"+portletId /> 
129<style> 
130${containerId} header.portlet-topper{ 
131display:none; 
132
133</style> 
134</#if> 
135 
136<#if (!isPDFExport)> 
137<script>		 
138        AUI().use('liferay-portlet-url', function(A){ 
139			var id = "56_INSTANCE_0000"; 
140			 
141    		var pdfURL = Liferay.PortletURL.createResourceURL(); 
142			pdfURL.setPortletId(id); 
143			pdfURL.setParameter("struts_action","/journal_content/export_article"); 
144			pdfURL.setParameter("groupId","${curArticle.getGroupId()}"); 
145			pdfURL.setParameter("templateId","${curArticle.getTemplateId()}"); 
146			pdfURL.setParameter("articleVersion","${curArticle.getVersion()}"); 
147			pdfURL.setParameter("articleId","${curArticle.getArticleId()}"); 
148			var pdfURL = pdfURL.toString() 
149			 
150						 
151			var printURL = Liferay.PortletURL.createRenderURL(); 
152			printURL.setPortletId(id); 
153			printURL.setParameter("struts_action","/journal_content/view"); 
154			printURL.setParameter("groupId","${curArticle.getGroupId()}"); 
155			printURL.setParameter("articleId","${curArticle.getArticleId()}"); 
156			printURL.setParameter("articleId","${curArticle.getArticleId()}"); 
157			printURL.setParameter("viewMode","print"); 
158			printURL.setWindowState("POP_UP"); 
159			 
160			var printURL = printURL.toString() 
161			 
162			 
163			A.one('.other-options .pdf') && A.one('.other-options .pdf').on('click', function(e){ 
164				e.preventDefault(); 
165				e.stopImmediatePropagation(); 
166				 
167				if( typeof ga === 'function'){ 
168				ga('send', 'event','PDF', 'Download', pdfURL); 
169				setTimeout(function(){ 
170					location.href=pdfURL} 
171					,200); 
172				return false; 
173
174				 
175				location.href = pdfURL; 
176				 
177				 
178			}); 
179			A.one('.other-options .print') && A.one('.other-options .print').on('click', function(e){ 
180				e.preventDefault(); 
181				e.stopImmediatePropagation(); 
182				window.open(printURL, '', "directories=0,height=480,left=80,location=1,menubar=1,resizable=1,scrollbars=yes,status=0,toolbar=0,top=180,width=640"); 
183			}); 
184		}); 
185 
186	</script> 
187</#if>