Disponibile il nuovo numero di Vision. In copertina "Un momento di incertezza. La ricerca sul sentiment dei reggiani" e i temi dell'Incontro di fine anno. Al suo interno anche: Cer Unindustria Reggio Emilia, l'Innovazione nelle PMI e le news dalle imprese.
The following has evaluated to null or missing: ==> entryId [in template "20097#20123#41814" at line 44, column 61] ---- 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: #if assetEntryLocalService.fetchAsset... [in template "20097#20123#41814" at line 44, column 17] ----
1<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
2<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") />
3
4<#assign currentURL = themeDisplay.getURLCurrent() />
5<#assign detailURLTitle = "" />
6
7
8<#assign breadcrumbPlid = 0 />
9<#attempt>
10 <#assign layout = themeDisplay.getLayout() />
11 <#assign breadcrumbPlid = getterUtil.getLong(layout.getExpandoBridge().getAttribute("breadcrumb-plid", false), 0) />
12<#recover>
13</#attempt>
14<#if breadcrumbPlid?? && breadcrumbPlid?has_content && breadcrumbPlid != 0>
15 <#assign customEntries = aireWidgetTemplateTool.getBreadcrumbEntriesByLayout(themeDisplay, breadcrumbPlid) />
16 <#if customEntries?? && customEntries?has_content && customEntries?size gt 0 >
17 <#assign entries = customEntries />
18 </#if>
19</#if>
20
21<#if currentURL?contains("asset_publisher")>
22 <#assign currentURLSplit = currentURL?split("/id/") />
23
24 <#if currentURLSplit?has_content && currentURLSplit?? && currentURLSplit?size gt 1>
25 <#assign rawEntryId = currentURLSplit[1]?trim />
26
27 <#-- Pulisce eventuale parte dopo il ? -->
28 <#assign cleanEntryId = rawEntryId?split("?")[0] />
29
30 <#-- Rimuove eventuale slash finale -->
31 <#assign cleanEntryId = cleanEntryId?replace(r"/$", "", "r") />
32
33 <#if cleanEntryId?matches("^[0-9]+$")>
34 <#assign entryId = cleanEntryId?number />
35
36 <#assign assetEntry = assetEntryLocalService.fetchAssetEntry(entryId) />
37
38 <#if assetEntry??>
39 <#assign item = aireWidgetTemplateTool.getFreemarkerMap(assetEntry.getClassPK(), localeUtil.getDefault()) />
40 <#assign detailURLTitle = htmlUtil.escape(item.titolo.value) />
41 </#if>
42 </#if>
43
44 <#if assetEntryLocalService.fetchAssetEntry(entryId?number)??>
45 <#assign assetEntry = assetEntryLocalService.fetchAssetEntry(entryId?number) />
46
47 <#assign item = aireWidgetTemplateTool.getFreemarkerMap(assetEntry.getClassPK(), localeUtil.getDefault()) />
48 <#assign detailURLTitle = htmlUtil.escape(item.titolo.value) />
49 </#if>
50 </#if>
51</#if>
52
53<#-- don't show breadcrumb for forgot password -->
54<#if !(currentURL?contains("p_p_id=com_liferay_login_web_portlet_LoginPortlet") && currentURL?contains("_com_liferay_login_web_portlet_LoginPortlet_mvcPath=%2Fforgot_password.jsp"))>
55 <div class="container">
56 <div class="row">
57 <div class="col-12">
58 <div class="unindustria-breadcrumb" role="navigation" aria-label="breadcrumb">
59 <#if entries?has_content>
60 <ol class="unindustria-breadcrumb__list">
61 <#assign isParentPageALink = false />
62 <#assign size = entries?size />
63 <#attempt>
64 <#if entries[size - 1]['baseModel']??>
65 <#assign plid = entries[size - 1]['baseModel']['plid'] />
66 <#assign layout = layoutLocalService.getLayout(plid) />
67 <#assign isParentPageALink = layout.getExpandoBridge().getAttribute("is-parent-page-a-link", false) />
68 </#if>
69 <#recover>
70 </#attempt>
71
72 <#list entries as entry>
73 <#assign isHome = false />
74 <#attempt>
75 <#if entry['baseModel']??>
76 <#assign plid = entry['baseModel']['plid'] />
77 <#assign layout = layoutLocalService.getLayout(plid) />
78 <#assign isHome = layout.getExpandoBridge().getAttribute("is-home", false) />
79 </#if>
80
81 <#assign secondToLastIndex = entries?size - 2 />
82 <#assign thirdToLastIndex = entries?size - 3 />
83 <#recover>
84 </#attempt>
85
86 <#if entry?has_next>
87 <#if currentURL?contains("asset_publisher")>
88 <#assign homeHiddenOnSmartphone = "d-none d-md-inline-block" />
89 <#elseif isParentPageALink>
90 <#assign homeHiddenOnSmartphone = "d-none d-md-inline-block" />
91 <#else>
92 <#assign homeHiddenOnSmartphone = "" />
93 </#if>
94
95 <#if isHome>
96 <li class="unindustria-breadcrumb__item ${homeHiddenOnSmartphone}">
97 <a href="${entry.getURL()!""}" title='<@liferay.language key="aire.return.to.homepage" />' class="unindustria-breadcrumb__link">
98 <span>${htmlUtil.escape(entry.getTitle())}</span>
99 </a>
100 </li>
101 <#elseif entry?index == secondToLastIndex?number && isParentPageALink>
102 <li class="unindustria-breadcrumb__item">
103 <a href="${entries[secondToLastIndex].getURL()!""}" title='${htmlUtil.escape(entries[secondToLastIndex].getTitle())}' class="unindustria-breadcrumb__link">
104 <span>${htmlUtil.escape(entries[secondToLastIndex].getTitle())}</span>
105 </a>
106 </li>
107 <#elseif entry?index == secondToLastIndex?number && currentURL?contains("asset_publisher")>
108 <#-- Asset Publisher on current entry: second to last entry (detail page) not visible -->
109 <#elseif entry?index == thirdToLastIndex?number && currentURL?contains("asset_publisher")>
110 <#-- Asset Publisher on current entry: third to last entry is visible from smartphone -->
111 <li class="unindustria-breadcrumb__item">
112 <a href="${entries[thirdToLastIndex].getURL()!""}" title='${htmlUtil.escape(entries[thirdToLastIndex].getTitle())}' class="unindustria-breadcrumb__link">
113 <span>${htmlUtil.escape(entries[thirdToLastIndex].getTitle())}</span>
114 </a>
115 </li>
116 <#else>
117 <li class="unindustria-breadcrumb__item d-none d-md-inline-block">
118 <span class="unindustria-breadcrumb__link">${htmlUtil.escape(entry.getTitle())}</span>
119 </li>
120 </#if>
121 <#else>
122 <#-- current URL -->
123 <#if currentURL?contains("asset_publisher")>
124 <#if detailURLTitle?has_content && detailURLTitle?? && detailURLTitle != "">
125 <li class="unindustria-breadcrumb__item d-none d-md-inline-block">
126 <span class="unindustria-breadcrumb__current">${detailURLTitle}</span>
127 </li>
128 </#if>
129 <#else>
130 <li class="unindustria-breadcrumb__item d-none d-md-inline-block">
131 <span class="unindustria-breadcrumb__current">${htmlUtil.escape(entry.getTitle())}</span>
132 </li>
133 </#if>
134 </#if>
135 </#list>
136 </ol>
137 </#if>
138 </div>
139 </div>
140 </div>
141 </div>
142</#if>
Scopri tutti i vantaggi riservati agli associati oppure crea un profilo come associato virtuale per accedere temporaneamente ai contenuti riservati.