[F12] Particulares - Planes de pensiones

#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] Planes de pensiones

#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] Beneficios - Planes de pensiones

#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

[F19][Modalidades] Planes de pensiones

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

$curelem.getData()

$curelem.getChild('colModalidadTitle').getData() #set( $colModalidadHelp = $curelem.getChild('colModalidadTitle').getChild('colModalidadHelp') ) #if ($colModalidadHelp.getData() != "")
$colModalidadHelp.getData()
#end
$curelem.getChild('colEdadTitle').getData() #set( $colEdadHelp = $curelem.getChild('colEdadTitle').getChild('colEdadHelp') ) #if ($colEdadHelp.getData() != "")
$colEdadHelp.getData()
#end
$curelem.getChild('colRiesgoTitle').getData() #set( $colRiesgoHelp = $curelem.getChild('colRiesgoTitle').getChild('colRiesgoHelp') ) #if ($colRiesgoHelp.getData() != "")
$colRiesgoHelp.getData()
#end
$curelem.getChild('colDescripcionTitle').getData()
#set( $modalityTitle = $curelem.getChild('modalityTitle') ) #if (!$modalityTitle.getSiblings().isEmpty()) #foreach ($modalityItem in $modalityTitle.getSiblings()) #if ($velocityCount > 1)
#end
#if ($modalityItem.getChild('modalityLinkBlank').getData().trim() == "SI") #set( $blankText = "target='_blank'" ) #else #set( $blankText = "" ) #end #if($modalityItem.getChild('modalityTooltip').getData() != "") #set($tooltip = "title='$modalityItem.getChild('modalityTooltip').getData()'") #else #set($tooltip = "") #end #if ($modalityItem.getChild('modalityLinkType').getData().trim() == "Interno") #if ($modalityItem.getChild('modalityLinkInterno') && $modalityItem.getChild('modalityLinkInterno').getFriendlyUrl() != "")

$modalityItem.getData()

#end #elseif ($modalityItem.getChild('modalityLinkType').getData().trim() == "Externo") #if ($modalityItem.getChild('modalityLinkExterno') && $modalityItem.getChild('modalityLinkExterno').getData() != "")

$modalityItem.getData()

#end #end
$curelem.getChild('colEdadTitle').getData()

$modalityItem.getChild('ageText').getData()

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

$modalityItem.getChild('riskText').getData()

$curelem.getChild('colEdadTitle').getChild('colEdadHelp').getData()
$curelem.getChild('colRiesgoTitle').getChild('colRiesgoHelp').getData()

$modalityItem.getChild('descriptionText').getData()

#set( $link = $modalityItem.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('LinkTooltip').getData().getData() != "") #set($tooltip = "title='$linkItem.getChild('LinkTooltip').getData()'") #else #set($tooltip = "") #end #if ($linkItem.getChild('LinkType').getData().trim() == "Interno") #if ($linkItem.getChild('LinkInterno') && $linkItem.getChild('LinkInterno').getFriendlyUrl() != "") $linkItem.getData() #end #elseif ($linkItem.getChild('LinkType').getData().trim() == "Externo") #if ($linkItem.getChild('LinkExterno') && $linkItem.getChild('LinkExterno').getData() != "") $linkItem.getData() #end #end #end #end
#end #end
$curelem.getChild('legend').getData()
#end #end

[F32] Encuentra tu plan - Buscador de planes

#if($margin.getData().trim() == "SI") #set($top = "") #else #set($top = "notop") #end
#if($header.getData())

$header.getData()

#end #if($image.alt.getData() != "") #set($image_alt = $image.alt.getData()) #else #if($image.getData() != "") #set ($path = $image.getData().split("/") ) #if($path.size() > 4) #set($image_alt = $path.get(4).split("\.").get(0) ) #end #end #end #if($image.getData() != "") $image_alt #end
#if($title.getData() != "")

$title.getData()

#end #if($resumenresinf.getData() != "") $resumenresinf.getData() #end $content.getData()

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#60463" 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 = themeDisplay.getScopeGroupId()> 
4<#assign locale = themeDisplay.getLocale()> 
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	<#if layout.getName() == faqsLayout.getName()> 
18		<h2 class="t-h2 Faq-title">${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.faq.question')}</h2> 
19	<#else> 
20		<h2 class="t-h2 Faq-title">${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.faq.other_questions')}</h2> 
21	   
22																											   
23	</#if> 
24 
25	<#list entries as entry> 
26 
27		<#assign renderer = entry.getAssetRenderer() > 
28		<#assign className = renderer.getClassName() > 
29		<#if className == "com.liferay.journal.model.JournalArticle"> 
30			<#assign journalArticle = renderer.getArticle() > 
31			<#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale.toString())) > 
32			<#assign rootElement = document.getRootElement() > 
33			 
34			<div class="Faq-item"> 
35				<div class="Faq-item-button js-Faq-trigger"> 
36					<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='question']") > 
37					<#assign fields = xPathSelector.selectNodes(rootElement) > 
38					<#list fields as field> 
39						<#assign question = field.getStringValue() > 
40					</#list> 
41					<#if  question?has_content && question?trim != "" > 
42						<a href="#" class="Faq-button-title ">${question}</a> 
43					</#if> 
44					 
45					<a href="#" class="Faq-button-arrow"><img src="${themeDisplay.getPathThemeImages()}/sprites/arrow-blue.svg"></a> 
46				</div> 
47				<div class="Faq-item-content js-Faq-content"> 
48				    <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='answer']")> 
49					<#assign fields = xPathSelector.selectNodes(rootElement) > 
50					<#list fields as field> 
51						<#assign answer = field.getStringValue() > 
52					</#list> 
53					<#if answer?has_content && answer?trim != "" > 
54						<p class="Faq-content-text">${answer}</p> 
55					</#if> 
56					<div class="Faq-content-rating"> 
57						<p class="Faq-rating-text">${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.faq.useful')}</p> 
58						<div class="Faq-rating-stars"> 
59 
60						<@liferay_ui["ratings"] className=entry.getClassName() numberOfStars=5 classPK=entry.getClassPK()  /> 
61					    <#--${taglibLiferay.ratings("com.liferay.journal.model.JournalArticle.class.getName()", entry.getClassPK(), 5, "stars", "")}   --> 
62						</div> 
63					</div> 
64				</div> 
65			</div> 
66		</#if> 
67	</#list> 
68	<#if layout.getName() != faqsLayout.getName()> 
69		<div class="Faq-CTA"> 
70			<a href="${siteURL}${faqsFriendlyURL}" class="Button Button--solid bg-primary">${literalTools.getLiteral(scopeGroupId, locale, 'corporativo.faq.show_all')}</a> 
71		</div> 
72	</#if> 
73</section> 
74</#if> 

[F11] Por qué 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