Công đoàn Sở
Có lỗi xảy ra trong quá trình xử lý biểu mẫu.
The following has evaluated to null or missing: ==> httpRequest.getPathInfo() [in template "20115#20151#532373" at line 83, column 31] ---- Tip: If the failing expression is known to be 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: listPartURL = httpRequest.getPathInfo... [in template "20115#20151#532373" at line 83, column 17] - Reached through: #assign-container [in template "20115#20151#532373" at line 82, column 1] ----
1<style scope>
2 .article-title{
3 text-decoration: none !important;
4 padding: 0;
5 margin-bottom: 5px
6 }
7 .article-title a{
8 color: #238ed7 !important;
9 }
10 .article-title a:hover{
11 color:red !important;
12 }
13 .cms-article-description{
14 padding: 0;
15 color:black;
16 font-size: 14px;
17 margin-bottom: 15px;
18 padding-bottom: 10px;
19 border-bottom: thin dotted rgba(0, 0, 0, 0.08);
20 }
21 .list-container{
22 font-size: 14px;
23 }
24 .publish-date{
25 color: #333;
26 }
27 .cms-title-category a{
28 color: #d70000;
29 font-weight: bold;
30 }
31 .title-category-container{
32 padding: 12px 0px 10px 12px;
33 border-bottom: 1px dotted #CBCBCB;
34 margin-bottom: 10px;
35 background: linear-gradient(#e9e9e9, #fbfbfb);
36 }
37 .btn-primary:active:hover{
38 color: #2c6c97;
39 border: 1px solid;
40 border-color: #C8C9CA #9E9E9E #9E9E9E #C8C9CA;
41 }
42 .taglib-page-iterator{
43 padding: 0 15px;
44 }
45 .taglib-page-iterator .search-results, .lfr-pagination-buttons, .lfr-icon-menu-text{
46 font-size: 12px;
47 }
48
49
50 @media only screen and (max-width: 767px){
51 .list-container {
52 padding: 6px;
53 }
54 .article-container {
55 margin-top: 0;
56 }
57
58 .taglib-page-iterator{
59 padding: 0 6px;
60 }
61 .taglib-page-iterator .lfr-pagination-buttons{
62 display: flex;
63 }
64 .taglib-page-iterator .lfr-pagination-buttons>li>a{
65 width: 99%;
66 border-radius: 4px;
67 }
68 .taglib-page-iterator .lfr-pagination-config .current-page-menu .btn{
69 margin: 0 0 5px 0;
70 }
71 .search-results{
72 display: unset !important;
73 line-height: 35px !important;
74 color: #9e9e9e;
75 }
76 }
77
78</style>
79
80<#assign httpRequest = portalUtil.getOriginalServletRequest(portalUtil.getHttpServletRequest(renderRequest))>
81<#assign AssetCategoryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryService")>
82<#assign dateSearch = getterUtil.getString(httpRequest.getParameter("date"))
83 listPartURL = httpRequest.getPathInfo()?split("-/categories/")
84 idCategory = ""
85 nameCategory = "Tin tức"
86>
87
88<#assign
89 idCategory = "205602"
90 category = AssetCategoryService.getCategory(idCategory?number)
91 nameCategory = category.getName()
92 >
93
94<h2 class="portlet-title-text">
95<img class="portlet-title-icon" alt="title"
96src="/o/hcm-default-theme/images/imageVanBan/iconTitle.jpg">
97<span>${nameCategory}</span>
98</h2>
99
100<div class="row row-swt-responsive">
101 <div class="col-md-12 list-container">
102 <#if entries?has_content>
103 <#if validator.isNull(dateSearch)>
104 <#assign listToShow = entries >
105 <#else>
106 <#assign listToShow = [] >
107 <#list entries?chunk(1) as i>
108 <#assign dateSearch_DateObj = dateUtil.parseDate("yyyy-MM-dd", dateSearch, locale)
109 curEntryDate = i?first.getPublishDate()
110 >
111 <#if dateSearch_DateObj?date?string.short?contains(curEntryDate?date?string.short) >
112 <#assign listToShow = listToShow + i>
113 </#if>
114 </#list>
115 </#if>
116 <#list listToShow as curEntry>
117 <#assign
118 curEntry = curEntry
119
120 renderer = curEntry.getAssetRenderer()
121 article = renderer.getArticle() >
122
123 <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
124 <#assign journalArticle = journalArticleLocalService.fetchLatestArticle(curEntry.getClassPK()) />
125
126
127
128 <#assign publishDate = curEntry.getPublishDate()
129 publishDate_txt = "(" + publishDate?date?string["dd/MM/yyyy"] + ")"
130 urlArticle = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, renderer, curEntry, !stringUtil.equals(assetLinkBehavior, "showFullContent"))
131 >
132
133 <div class="col-md-12 article-container">
134 <div class="col-md-12 col-xs-12 article-title">
135 <span class="glyphicon glyphicon-stop" style="font-size: 5px;color: #238ed7;"></span>
136 <a href="${urlArticle}">
137 ${article.getTitle()?replace('<[^>]+>','','r')} <span class="publish-date">${publishDate_txt}<span>
138 </a>
139 </div>
140 <div class="col-md-12 col-xs-12 cms-article-description">
141 ${article.getDescription(locale)}
142 </div>
143 </div>
144 </#list>
145 </#if>
146 </div>
147</div>