TOLLRO
Faq
Find answers here to the most frequently asked questions about the services and activities of the National Road Infrastructure Management Company (CNAIR).
An error occurred while processing the template.
The following has evaluated to null or missing:
==> article.getArticleId [in template "20095#20120#36205" at line 8, column 27]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: @liferay_journal["journal-article"] a... [in template "20095#20120#36205" at line 7, column 13]
----
1<div class="d-flex flex-column intrebari-frecvente" id="tst">
2 <#list entries as entry>
3 <#assign renderer = entry.getAssetRenderer() />
4 <#assign article = renderer.getAssetObject() />
5
6 <div class="col-12 mb-3 qt">
7 <@liferay_journal["journal-article"]
8 articleId=article.getArticleId()
9 groupId=article.getGroupId()
10 />
11 </div>
12 </#list>
13</div>
14<script>
15{
16 const questions = document.querySelectorAll(".qt");
17
18 questions.forEach((item) => {
19 item.addEventListener('click', () => {
20 const isOpen = item.classList.contains("open-question");
21 questions.forEach((q) => q.classList.remove("open-question"));
22 if (!isOpen) {
23 item.classList.add("open-question");
24 }
25 });
26 });
27}
28
29</script>
