Plan antifraude del Ayuntamiento de Salamanca
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> parentUrl [in template "20096#20121#68087" at line 53, column 60] ---- 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: ${parentUrl} [in template "20096#20121#68087" at line 53, column 58] ----
1<#--
2Add elements from the sidebar to define your template. Type "${" to use the
3autocomplete feature.
4-->
5
6<#assign catTematica="">
7<#assign cont=0>
8<#assign LayoutLocalServiceUtil = staticUtil["com.liferay.portal.kernel.service.LayoutLocalServiceUtil"] />
9<#assign LocaleUtil = staticUtil["com.liferay.portal.kernel.util.LocaleUtil"]>
10<#assign AssetEntryLocalServiceUtil=staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"] />
11<#assign journalArticleClassName="com.liferay.journal.model.JournalArticle" />
12<#assign JournalArticleLocalService=serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
13<#assign AssetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"] />
14<#assign articleId=.vars['reserved-article-id'].data />
15<#assign journalArticle=JournalArticleLocalService.fetchArticle(groupId, articleId?string) />
16<#assign assetEntry=AssetEntryLocalServiceUtil.getEntry(journalArticleClassName, journalArticle.getResourcePrimKey()?number) />
17<#assign categories = AssetCategoryLocalServiceUtil.getCategories(assetEntry.getClassName(),assetEntry.getClassPK())>
18<#assign layoutsGeneral=LayoutLocalServiceUtil.getLayouts(groupId,false)>
19
20 <div class="d-none d-md-block">
21 <ol class="m-0 pl-0 bg-slm-blanco breadcrumb custom-breadcrumb">
22 <li class="breadcrumb-item d-flex align-items-center">
23 <span class="">
24 <a class="breadcrumb-link d-flex" href="/">
25 <img class="mb-1" src="${themeDisplay.getPathThemeImages()}/salamanca/icons/home-blue.svg" alt="Icono Home">
26 </a>
27 </span>
28 </li>
29 <li class="breadcrumb-item">
30 <span class="">
31 Tu ciudad
32 </span>
33 </li>
34 <#list categories as catAsset>
35 <#if cont==0>
36 <#list layoutsGeneral as layoutG>
37 <#assign assetEntry=AssetEntryLocalServiceUtil.getEntry(groupId,layoutG.getUuid())>
38 <#assign categories = AssetCategoryLocalServiceUtil.getCategories(assetEntry.getClassName(),assetEntry.getClassPK())>
39 <#list categories as cat>
40 <#if cat.getCategoryId()?number==catAsset.getCategoryId()?number>
41 <#assign layoutOrigen=layoutG>
42 <#assign nombreDestino=layoutOrigen.getName(locale)>
43 <#assign destino=layoutOrigen.getFriendlyURL()>
44 <#assign parentLayoutPlid=layoutOrigen.getParentPlid()>
45 <#assign parentLayout=LayoutLocalServiceUtil.getLayout(parentLayoutPlid)>
46 <#assign parentUrl=parentLayout.getFriendlyURL()>
47 <#assign parentNombre=parentLayout.getName(locale)>
48 </#if>
49 </#list>
50 </#list>
51 <li class="breadcrumb-item">
52 <span class="">
53 <a class="breadcrumb-link" href="${parentUrl}">
54 ${parentNombre}
55 </a>
56 </span>
57 </li>
58 <li class="breadcrumb-item">
59 <span class="">
60 <a class="breadcrumb-link" href="${destino}">
61 ${nombreDestino}
62 </a>
63 </span>
64 </li>
65 <#else>
66 <#list layoutsGeneral as layoutG>
67 <#assign assetEntry=AssetEntryLocalServiceUtil.getEntry(groupId,layoutG.getUuid())>
68 <#assign categories = AssetCategoryLocalServiceUtil.getCategories(assetEntry.getClassName(),assetEntry.getClassPK())>
69 <#list categories as cat>
70 <#if cat.getCategoryId()?number==catAsset.getCategoryId()?number>
71 <#assign layoutOrigen=layoutG>
72 <#assign nombreDestino=layoutOrigen.getName(locale)>
73 <#assign destino=layoutOrigen.getFriendlyURL()>
74 <li class="breadcrumb-item">
75 <span class="">
76 <a class="breadcrumb-link" href="${destino}">
77 ${nombreDestino}
78 </a>
79 </span>
80 </li>
81 </#if>
82 </#list>
83 </#list>
84
85 </#if>
86 <#assign cont++>
87
88 </#list>
89 <li class="breadcrumb-item">
90 <span class="active">
91 ${journalArticle.getTitle(locale)}
92 </span>
93 </li>
94 </ol>
95</div>