State Wise Photo Gallery - RBI - Reserve Bank of India
An error occurred while processing the template.
Can't convert this string to number: "111814684&delta=10" The blamed expression: ==> categoryId?number [in template "20099#20125#111810832" at line 27, column 31] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign categoryId = categoryId?number [in template "20099#20125#111810832" at line 27, column 9] ----
1<div class="MuseumBannerArea museum-banner-inner-page banner-with-link dynamic-list-links final-one full-width">
2
3 <!--desktop image-->
4<#if (FieldsGroup56007218.bannerImgWeb.getData())?? && FieldsGroup56007218.bannerImgWeb.getData() !="">
5<div class="child-page-banner-image mobile-hide"
6 style="background-image:url('${FieldsGroup56007218.bannerImgWeb.getData()}')"></div>
7</#if>
8
9<!--desktop image-->
10
11<!--mobile image-->
12<#if (FieldsGroup56007218.ImageBannerMobile.getData())?? && FieldsGroup56007218.ImageBannerMobile.getData() !="">
13<div class="child-page-banner-image desktop-hide"
14 style="background-image:url('${FieldsGroup56007218.ImageBannerMobile.getData()}')"></div>
15</#if>
16
17<!--mobile image end-->
18<#-- Get the current page URL -->
19<#assign currentUrl = themeDisplay.getURLCurrent()>
20
21<#-- Split the URL to isolate the query string -->
22
23<#assign indexOfEqual = currentUrl?index_of("=")/>
24
25<#if indexOfEqual != -1>
26 <#assign categoryId = currentUrl?substring(indexOfEqual + 1)? trim />
27 <#assign categoryId = categoryId?number/>
28</#if>
29
30<#-- Fetch the category object using the category ID -->
31<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")/>
32
33<#assign category = assetCategoryLocalService.getAssetCategory(categoryId)/>
34
35<#if category?has_content>
36 <#assign categoryName = category.getName()/>
37</#if>
38
39<div class="container">
40
41<div class="rbi-breadcrumbs-wrap">
42 <div class="container-fluid no-pad-LR" >
43 <nav>
44
45 <ol class="breadcrumb rbi-simple-breadcrumbs dynamic-breadcrumbs d-none" id="getBreadcumbs">
46
47 <#-- Looping starts for Breadcrums Repeatable Field -->
48 <#if BreadcrumbDetails.getSiblings()?has_content>
49 <#list BreadcrumbDetails.getSiblings() as cur_breadcrumbs>
50
51 <li class="breadcrumb-item breadcrumb-item-name">
52
53 <a href="${cur_breadcrumbs.BreadcrumbLinkToPage.getFriendlyUrl()}" class="breadcrumb-item-name">
54 <#if (cur_breadcrumbs.BreadcrumbText.getData())??>
55 ${cur_breadcrumbs.BreadcrumbText.getData()}
56 </#if>
57 </a>
58 </li>
59 </#list>
60 </#if>
61
62 <#-- Looping ends for Breadcrums Repeatable Field -->
63 <!-- <li class="breadcrumb-item breadcrumb-item-name" aria-current="page">
64 <#if (activeBreadcrumbText.getData())??>
65 ${activeBreadcrumbText.getData()}
66 </#if>
67 </li> -->
68 <li class="breadcrumb-item breadcrumb-item-name dynamicReportCategory"></li>
69 <li class="breadcrumb-item active breadcrumb-item-name dynamicCategoryName">${categoryName}</li>
70
71
72 </ol>
73
74
75 <ol class="breadcrumb rbi-simple-breadcrumbs breadcrumbs-load d-none" id="page-dynamic-breadcurmbs">
76
77 </ol>
78
79 </nav>
80 </div>
81</div>
82
83
84<div class="MuseumBannerLeft">
85 <div class="MuseumBannerLeft__content">
86 <h2 class="main-heading" style="margin-top:44px;">
87 <#if (bannerHeader.getData())??>
88 ${bannerHeader.getData()}
89 </#if>
90 </h2>
91
92
93
94 </div>
95
96</div>
97
98</div>
99
100</div>
101
102<script>
103
104
105 $(function() {
106
107 if ($(".rbi-breadcrumbs-wrap").length > 0) {
108 if ($(".rbi-simple-breadcrumbs").hasClass("dynamic-breadcrumbs")) {
109 //Add Report in breadcrumb for specific category
110 let ifReportCategoryNameEmpty = $(".dynamicReportCategory").text();
111 let ifCategoryNameEmpty = $(".dynamicCategoryName").text();
112
113 if(ifReportCategoryNameEmpty == ""){
114 $(".dynamicReportCategory").addClass("d-none");
115 $(".dynamicReportCategory").remove();
116 }
117 let bradCrumbsHTML = $("#getBreadcumbs").html();
118 $("#getBreadcumbs").remove();
119 $(".breadcrumbs-load").removeClass("d-none");
120
121 $('#page-dynamic-breadcurmbs').empty().append(bradCrumbsHTML);
122 }
123 }
124
125
126
127 });
128</script>
Was this page helpful?