$generalTitle.getData()
$curelem.getData()
$benefitItem.getData()
$benefitItem.getChild('benefitDescription').getData()
$generalTitle.getData()
#end #if (!$productTitle.getSiblings().isEmpty()) #foreach ($curelem in $productTitle.getSiblings())$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()
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>
$generalTitle.getData() .getData())
#end
#if (!$columnTitle.getSiblings().isEmpty())
$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