[F12] Individuals - Life annuity

#set ($layoutFriendlyURLLocalService = $serviceLocator.findService("com.liferay.portal.kernel.service.LayoutFriendlyURLLocalService")) #set ($layoutLocalService = $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 = $layoutLocalService.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.getTitle($locale))) #set ($layoutURL = $friendlyURL) #set($itemPair = [$layoutURL, $layoutName]) #set($itemPairInserted = $breadcrumbMap.add($itemPair)) #set ($parentLayout = $layoutLocalService.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.getChild('description').getData() != "") #set ($big = "big") #else #set ($big = "") #end #if($generalTitle.getData() == "" && $generalTitle.getChild('description').getData() == "") #set($cropped = "cropped") #else #set($cropped = "") #end #if (!$generalTitle.getSiblings().isEmpty()) #if($generalTitle.getChild('backgroundType').getData().trim() == "Imagen")
$generalTitle.getChild('backgroundImage').getChild('backgroundImageDescription').getData()
#elseif($generalTitle.getChild('backgroundType').getData().trim() == "Color")
#end
#if($generalTitle.getChild('breadcrumbVisible').getData().trim() == "SI") #end

$generalTitle.getData()

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

[F17] Navegacion - Rentas vitalicias

#if ($marginBottom.getData() == "SI") #set($hasMarginBottom = "") #else #set($hasMarginBottom = "noMargin") #end #if (!$LinkTitle.getSiblings().isEmpty())
    #foreach ($curelem in $LinkTitle.getSiblings()) #if($curelem.getChild('LinkTooltip').getData() != "") #set($tooltip = "title='$curelem.getChild('LinkTooltip').getData()'") #else #set($tooltip = "") #end
  • $curelem.getData()
  • #end
#end

[F18] Benefits - Life annuity

#if (!$generalTitle.getSiblings().isEmpty()) #foreach ($curelem in $generalTitle.getSiblings())

$curelem.getData()

#set( $benefit = $curelem.getChild('benefitTitle') ) #if (!$benefit.getSiblings().isEmpty()) #foreach ($benefitItem in $benefit.getSiblings())

$benefitItem.getData()

$benefitItem.getChild('benefitDescription').getData()

#end #end
#end #end

[F23][Productos] Individuals - Life annuity

#if ($generalTitle.getData() != "")

$generalTitle.getData()

#end #if (!$productTitle.getSiblings().isEmpty()) #foreach ($curelem in $productTitle.getSiblings())
#if ($curelem.getChild('productLinkBlank').getData().trim() == "SI") #set( $blankText = "target='_blank'" ) #else #set( $blankText = "" ) #end #if ($curelem.getChild('productTooltip').getData() != "") #set($tooltip = "title='$curelem.getChild('productTooltip').getData()'") #else #set($tooltip = "") #end #if ($curelem.getChild('productLinkType').getData().trim() == "Interno") #if ($curelem.getChild('productLinkInterno') && $curelem.getChild('productLinkInterno').getFriendlyUrl() != "")

$curelem.getData()

#end #elseif ($curelem.getChild('productLinkType').getData().trim() == "Externo") #if ($curelem.getChild('productLinkExterno') && $curelem.getChild('productLinkExterno').getData() != "")

$curelem.getData()

#end #end #if ($curelem.getChild('productSubTitle').getData() != "") $curelem.getChild('productSubTitle').getData() #end

$curelem.getChild('productSummary').getData()

#set( $link = $curelem.getChild('LinkTitle') ) #if (!$link.getSiblings().isEmpty()) #foreach ($linkItem in $link.getSiblings()) #if ($linkItem.getChild('LinkBlank').getData().trim() == "SI") #set( $blankText = "target='_blank'" ) #else #set( $blankText = "" ) #end #if ($linkItem.getChild('LinkType').getData().trim() == "Interno") #if ($linkItem.getChild('LinkInterno') && $linkItem.getChild('LinkInterno').getFriendlyUrl() != "") $linkItem.getData() #if ($linkItem.getChild('LinkTooltip').getData() != "") $linkItem.getChild('LinkTooltip').getData() #end #end #elseif ($linkItem.getChild('LinkType').getData().trim() == "Externo") #if ($linkItem.getChild('LinkExterno') && $linkItem.getChild('LinkExterno').getData() != "") $linkItem.getData() #if ($linkItem.getChild('LinkTooltip').getData() != "") $linkItem.getChild('LinkTooltip').getData() #end #end #end #end #end
#end #end

Asset Publisher

An error occurred while processing the template.
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#177203" at line 2, column 1]
----
1<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")> 
2<#assign literalTools = serviceLocator.findService("com.vidacaixa.services.service", "com.vidacaixa.services.service.LiteralsToolsLocalService")> 
3<#assign scopeGroupId = scopeGroupId> 
4<#assign locale = locale> 
5<#assign siteURL = ""> 
6<#assign includeUrlPath = layout.getGroup().getExpandoBridge().getAttribute("incluir-path-url")> 
7<#if includeUrlPath> 
8	<#assign siteURL = "/web" + layout.getGroup().friendlyURL> 
9</#if> 
10 
11<#assign faqsLayout = layoutLocalService.getLayout(75073)> 
12<#assign faqsFriendlyURL = faqsLayout.getFriendlyURL(locale)> 
13 
14<#if entries?has_content> 
15 
16<section id="faq" class="Faq module container is-small"> 
17    <h2 class="t-h2 Faq-title">${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.faq.richText.question')}</h2> 
18	 
19	<#list entries as entry> 
20 
21		<#assign renderer = entry.getAssetRenderer() > 
22		<#assign className = renderer.getClassName() > 
23		<#if  className == "com.liferay.journal.model.JournalArticle" > 
24			<#assign  journalArticle = renderer.getArticle() > 
25			<#assign  document = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString())) > 
26			<#assign  rootElement = document.getRootElement() > 
27			 
28			<div class="Faq-item"> 
29				<div class="Faq-item-button js-Faq-trigger"> 
30					<#assign  xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='question']")> 
31					<#assign  fields = xPathSelector.selectNodes(rootElement)> 
32					<#list fields as field> 
33						<#assign  question = field.getStringValue()> 
34					</#list> 
35					<#if question?has_content && question?trim != "" > 
36						<a href="#" class="Faq-button-title ">${question}</a> 
37					</#if> 
38					 
39					<a href="#" class="Faq-button-arrow"><img src="${themeDisplay.getPathThemeImages()}/sprites/arrow-blue.svg"></a> 
40				</div> 
41				<div class="Faq-item-content js-Faq-content u-wysiwyg"> 
42				    <#assign  xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='answer']")> 
43					<#assign  fields = xPathSelector.selectNodes(rootElement)> 
44					<#list fields as field> 
45						<#assign  answer = field.getStringValue() > 
46					</#list> 
47					<#if  answer?has_content && answer?trim != "" > 
48						<p class="Faq-content-text">${answer}</p> 
49					</#if> 
50					<div class="Faq-content-rating"> 
51						<p class="Faq-rating-text">${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.faq.useful')}</p> 
52						<div class="Faq-rating-stars"> 
53					    <@liferay_ui["ratings"] className=entry.getClassName() numberOfStars=5 classPK=entry.getClassPK()  /> 
54						</div> 
55					</div> 
56				</div> 
57			</div> 
58		</#if> 
59	</#list> 
60	<div class="Faq-CTA"> 
61        <a href="${siteURL}${faqsFriendlyURL}" class="Button Button--solid bg-primary">${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.faq.show_all')}</a> 
62    </div> 
63</section> 
64</#if> 

[F11] Why VidaCaixa

#if ($generalTitle.getData() != "") #if($generalTitle.getChild('image').getChild('imageDescription').getData() != "") #set($image_description = "alt='$generalTitle.getChild('image').getChild('imageDescription').getData()'") #else #set($image_description = "") #end

$generalTitle.getData()

#end #if (!$columnTitle.getSiblings().isEmpty())
#foreach ($curelem in $columnTitle.getSiblings()) #if ($curelem.getChild('columnHighlighted').getData().trim() == "SI") #set( $columnHighlighted = "is-blue" ) #set( $highlights-itemTitle = "" ) #set( $linkWhite = "is-white" ) #else #set( $columnHighlighted = "" ) #set( $highlights-itemTitle = "highlights-itemTitle" ) #set( $linkWhite = "" ) #end #set( $link = $curelem.getChild('LinkTitle') ) #if ($link.getChild('LinkBlank').getData().trim() == "SI") #set( $blankText = "target='_blank'" ) #else #set( $blankText = "" ) #end #if($link.getChild('LinkTooltip').getData() != "") #set($link_tooltip = "title='$link.getChild('LinkTooltip').getData()'") #else #set($link_tooltip = "") #end

$curelem.getData()

$curelem.getChild('columnDescription').getData()

#if ($link.getChild('LinkVisible').getData().trim() == "SI") #if ($link.getChild('LinkType').getData().trim() == "Interno") #if ($link.getChild('LinkInterno') && $link.getChild('LinkInterno').getFriendlyUrl() != "") $link.getData() #end #elseif ($link.getChild('LinkType').getData().trim() == "Externo") #if ($link.getChild('LinkExterno') && $link.getChild('LinkExterno').getData() != "") $link.getData() #end #end #end
#end
#end