Contacts
Une erreur s'est produite lors du traitement du modèle.
The following has evaluated to null or missing: ==> city [in template "20100#20127#AGENCY-ADDRESS" at line 27, column 89] ---- 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_ui.message key="sully.agency... [in template "20100#20127#AGENCY-ADDRESS" at line 27, column 29] ----
1<#compress>
2 <#assign journalArticleId = .vars['reserved-article-id'].data>
3 <#assign journalArticleResourceLocalServiceUtil = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")>
4 <#assign articleResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, journalArticleId)/>
5 <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")/>
6 <#assign entry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", articleResourcePK) />
7 <#assign liferayUtils = serviceLocator.findService("com.sully.liferay.utils.LiferayUtils")/>
8 <#assign cities = liferayUtils.getEntryCategoriesForVocabulary(entry, "agence") />
9 <#if (cities?size > 0)>
10 <#assign city = cities[0] />
11 <#if city?has_content>
12 <#assign link = liferayUtils.getCategoryProperty(city.getCategoryId(), 'agence-url') />
13 <#assign address = liferayUtils.getCategoryProperty(city.getCategoryId(), "address") />
14 </#if>
15 </#if>
16 <div>
17 <div class="tw-flex tw-flex-col tw-gap-8">
18 <div id="zone-address" class="tw-flex tw-flex-col tw-gap-4" tabindex="0">
19 <p class="tw-text-xl tw-font-bold">
20 SULLY GROUP<br>
21 <#if city?has_content && city.name == 'Si�ge'>
22 ${city.getTitle(locale)}
23 <#else>
24 <#if city?has_content && "aeiou"?contains(city.getTitle(locale)?lower_case[0..0])>
25 <@liferay_ui.message key="sully.agency-of-2-x" arguments="${city.getTitle(locale)}"/>
26 <#else>
27 <@liferay_ui.message key="sully.agency-of-1-x" arguments="${city.getTitle(locale)}"/>
28 </#if>
29 </#if>
30 </p>
31 <#if (address?has_content)>
32 <p>${address}</p>
33 </#if>
34 </div>
35
36 <div class="md:tw-self-start">
37 <a href="${link}" class="no-underline tw-py-2 tw-px-6 tw-font-bold tw-uppercase tw-bg-sully-pink-500
38 tw-text-white tw-border-2 tw-border-transparent tw-rounded-full tw-cursor-pointer
39 hover:tw-bg-transparent hover:tw-text-sully-pink-500 hover:tw-border-sully-pink-500
40 focus:tw-bg-transparent focus:tw-text-sully-pink-500 focus:tw-border-sully-pink-500 tw-transition-all
41 tw-text-center tw-block tw-w-full md:tw-inline md:tw-w-fit">
42 <@liferay_ui.message key='sully.to-discover-agency' />
43 </a>
44 </div>
45 </div>
46 </div>
47</#compress>