Examples

Examples that use GemFire clients.
Ordena
Categoria
S'ha produït un error mentre es processava la plantilla.
Can't convert this string to number: "com.liferay.document.library.kernel.model.DLFileEntry_PORTLET_20358715"
The blamed expression:
==> pageId?number  [in template "20342693#20342734#20347394" at line 20, column 55]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if p.plid == pageId?number  [in template "20342693#20342734#20347394" at line 20, column 41]
----
1<#-- 
2Widget templates can be used to modify the look of a 
3specific application. 
4 
5Please use the right panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8	<#assign currentLayout = themeDisplay.getLayout()> 
9	<#assign childPages = currentLayout.getChildren()> 
10		 
11		 
12		<div class="search-total-label ml-3 mb-2"> 
13			${languageUtil.format(locale, "x-results-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)} 
14		</div> 
15		 
16		<div class = "row ml-3"> 
17			<#list searchContainer.getResults() as result > 
18				<#assign pageId= result.uid?remove_beginning("com.liferay.portal.kernel.model.Layout_PORTLET_") /> 
19				<#list childPages as p> 
20					<#if p.plid== pageId?number> 
21						<#assign pageDetails = p /> 
22					</#if> 
23				</#list> 
24				<#if pageDetails?has_content> 
25					<div class= "col col-md-4 mb-3"> 
26						<div class="dp-card dp-card-widget dp-card-shadow-sm h-100 p-2"> 
27							<a href="${pageDetails.friendlyURL}" class="d-flex mt-2 justify-content-center btn btn-link-text" > 
28				 
29								${result.name} 
30							</a> 
31							<#if entry.content?has_content > 
32								<div class= "mt-3"> 
33									<#if result.content_en_US?keep_after("Introduction")?has_content> 
34										${result.content_en_US?keep_after("Introduction")?substring(0, 200)}... 
35									</#if> 
36								</div> 
37							</#if> 
38						</div> 
39					</div> 
40				</#if> 
41		</#list> 
42	</div>