Visualización del menú

[F13] Glosario

#set ($layoutFriendlyURLLocalService = $serviceLocator.findService("com.liferay.portal.kernel.service.LayoutFriendlyURLLocalService")) #set ($layoutService = $serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")) #set ($literalTools = $serviceLocator.findService("com.vidacaixa.services.service", "com.vidacaixa.services.service.LiteralsToolsLocalService")) #set ($scopeGroupId = $scopeGroupId) #set ($locale = $locale) #set ($layoutId = $plid) #set ($layoutIdLong = $getterUtil.getLong($layoutId)) #set ($currentLayout = $layoutService.getLayout($layoutIdLong)) #set ($breadcrumbMap = []) #set ($breadcrumbMapSorted = []) #set ($siteURL = "") #set ($includeUrlPath = $currentLayout.getGroup().getExpandoBridge().getAttribute("incluir-path-url")) #if ($includeUrlPath) #set ($siteURL = "/web" + $currentLayout.getGroup().friendlyURL) #end #foreach($i in [0..100]) #if ($currentLayout.getParentLayoutId() gt 0) #set ($currentLayoutIdLong = $getterUtil.getLong($currentLayout.plid)) #set ($friendlyURL = $layoutFriendlyURLLocalService.getLayoutFriendlyURL($currentLayoutIdLong, $locale.toString()).friendlyURL) #set ($layoutName = $htmlUtil.escape($currentLayout.getName($locale))) #set ($layoutURL = $friendlyURL) #set($itemPair = [$layoutURL, $layoutName]) #set($itemPairInserted = $breadcrumbMap.add($itemPair)) #set ($parentLayout = $layoutService.getParentLayout($currentLayout)) #set ($currentLayout = $parentLayout) #else #set ($currentLayoutIdLong = $getterUtil.getLong($currentLayout.plid)) #set ($friendlyURL = $layoutFriendlyURLLocalService.getLayoutFriendlyURL($currentLayoutIdLong, $locale.toString()).friendlyURL) #set ($layoutName = $htmlUtil.escape($currentLayout.getName($locale))) #set ($layoutURL = $friendlyURL) #if ($layoutName ne "Menu principal" && $layoutName ne "Menu secundario") #set($itemPair = [$layoutURL, $layoutName]) #set($itemPairInserted = $breadcrumbMap.add($itemPair)) #end #break #end #end #set ($breadcrumbMapSize = $breadcrumbMap.size() - 1) #foreach( $j in [0..$breadcrumbMapSize] ) #set ($index = $breadcrumbMapSize - $j) #set ($item = $breadcrumbMap.get($index)) #set ($inserted = $breadcrumbMapSorted.add($item)) #end #if($generalTitle.getChild('addBottomMargin').getData().trim() == "NO") #set($margin = "quote") #else #set($margin = "") #end #if($generalTitle.getData() == "" && $generalTitle.getChild('description').getData() == "") #set($slider = "soloBreadcrumb") #else #set($slider = "") #end #if($generalTitle.getChild('color').getData() != "") #set($style = "style='background-color : $generalTitle.getChild('color').getData();'") #else #set($style = "") #end #if(!$generalTitle.getSiblings().isEmpty())
#if($generalTitle.getChild('breadcrumbVisible').getData().trim() == "SI") #end #if($generalTitle.getData() != "")

$generalTitle.getData()

#end #if($generalTitle.getChild('description').getData() != "")

$generalTitle.getChild('description').getData()

#end
#end

Publicador de contenidos

Se ha producido un error al procesar la plantilla.
Java method "com.liferay.portal.template.ServiceLocator.findService(String)" takes 1 argument, but 2 was given.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign literalTools = serviceLocator...  [in template "20155#20195#60468" at line 1, column 1]
----
1<#assign literalTools = serviceLocator.findService("com.vidacaixa.services.service", "com.vidacaixa.services.service.LiteralsToolsLocalService")> 
2<#assign scopeGroupId = scopeGroupId> 
3<#assign locale = locale> 
4<#assign assetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")> 
5<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
6 
7<#if entries?has_content> 
8 
9	<#assign categoriesId = []> 
10	<#assign faqCategoriesId = []> 
11	<#assign assetVocabulary = assetVocabularyLocalService.getGroupVocabulary(scopeGroupId, "Faq")> 
12	<#assign faqCategories = assetVocabulary.getCategories()> 
13	<#list faqCategories as faqCategory> 
14		<#assign faqCategoriesId = faqCategoriesId + [faqCategory.categoryId]> 
15	</#list> 
16 
17<section id="faq" class="Faq module container is-small Faq-margin"> 
18	 
19	<#list faqCategoriesId as faqCategoryId> 
20		<#assign hasCategoryEntry = false> 
21		<#list entries as entry> 
22			<#list entry.getCategories() as entryCategory> 
23				<#if entryCategory.categoryId == faqCategoryId> 
24					<#if categoriesId?? && (categoriesId?size != 0) && categoriesId?has_content > 
25						<#list categoriesId as catId> 
26							<#if catId == faqCategoryId> 
27								<#assign hasCategoryEntry = true> 
28							</#if> 
29						</#list> 
30					</#if> 
31					<#if !hasCategoryEntry> 
32						<#assign categoriesId = categoriesId + [faqCategoryId]> 
33					</#if> 
34				</#if> 
35			</#list> 
36		</#list> 
37	</#list> 
38	 
39	<#list categoriesId as categoryId> 
40		<#if categoryId?counter != 1> 
41		    <#assign style = "style='border-top: 1px solid #e5e5e5; padding-top: 50px;'"> 
42		<#else> 
43		    <#assign style = ""> 
44		</#if> 
45		 
46		<#assign category = assetCategoryLocalService.getCategory(categoryId)> 
47		 
48	    <h2 class="t-h2 Faq-title" style>${category.getTitle(locale)}</h2> 
49 
50		<#list entries as entry> 
51			<#list entry.getCategories() as entryCategory> 
52				<#if entryCategory.categoryId == categoryId> 
53					<#assign renderer = entry.getAssetRenderer() > 
54					<#assign className = renderer.getClassName() > 
55					<#if className == "com.liferay.journal.model.JournalArticle" > 
56						<#assign  journalArticle = renderer.getArticle() > 
57						<#assign  document = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString())) > 
58						<#assign  rootElement = document.getRootElement() > 
59						 
60						<div class="Faq-item"> 
61							<div class="Faq-item-button js-Faq-trigger"> 
62								<#assign  xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='question']") > 
63								<#assign  fields = xPathSelector.selectNodes(rootElement) > 
64								<#list fields as field> 
65									<#assign  question = field.getStringValue() > 
66								</#list> 
67								<#if  question?has_content && question?trim != "" > 
68									<a href="#" class="Faq-button-title ">${question}</a> 
69								</#if> 
70								 
71								<a href="#" class="Faq-button-arrow"><img src="${themeDisplay.getPathThemeImages()}/sprites/arrow-blue.svg"></a> 
72							</div> 
73							<div class="Faq-item-content js-Faq-content u-wysiwyg"> 
74							    <#assign  xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='answer']") > 
75								<#assign  fields = xPathSelector.selectNodes(rootElement) > 
76								<#list fields as field> 
77									<#assign  answer = field.getStringValue() > 
78								</#list> 
79								<#if  answer?has_content && answer?trim != "" > 
80								    <p class="Faq-content-text">${answer}</p> 
81								</#if> 
82								<div class="Faq-content-rating"> 
83									<p class="Faq-rating-text">${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.faq.useful')}</p> 
84									<div class="Faq-rating-stars"> 
85                                    <@liferay_ui["ratings"] className=entry.getClassName() numberOfStars=5 classPK=entry.getClassPK()  /> 
86									   <#-- taglibLiferay.ratings("com.liferay.journal.model.JournalArticle.class.getName()", entry.getClassPK(), 5, "stars", "")--> 
87									</div> 
88								</div> 
89							</div> 
90						</div> 
91					</#if> 
92				</#if> 
93			</#list> 
94		</#list> 
95	</#list> 
96</section> 
97</#if>