$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#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>
$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