An error occurred while processing the template.
The following has evaluated to null or missing: ==> curEntry.getAssetRenderer() [in template "20097#20123#41527" at line 97, column 24] ---- 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: renderer = curEntry.getAssetRenderer() [in template "20097#20123#41527" at line 97, column 13] ----
1<style>
2 .title-news-row2 {
3 min-height: 51px;
4 }
5 .title-news-row2 > p {
6 text-overflow: ellipsis;
7 word-wrap: break-word;
8 overflow: hidden;
9 max-height: 9em;
10 display: -webkit-box;
11 -webkit-line-clamp: 2;
12 -webkit-box-orient: vertical;
13 margin: 0;
14 }
15
16 .custom-by-portal-hcm .title-news-custom {
17 margin-top: 10px;
18 margin-bottom: 20px;
19 }
20 .custom-by-portal-hcm .title-news-custom > p {
21 color: var(--cpblue-031379, #031739);
22 /* Subtitle 2-16px */
23 font-family: Roboto;
24 font-size: 16px;
25 font-style: normal;
26 font-weight: 700;
27 line-height: 130%;
28 /* 20.8px */
29 letter-spacing: 0.024px;
30 padding: 12px;
31 }
32
33 .custom-by-portal-hcm .danhsach-tin-1-cot a.custom-title-news {
34 background: var(--cpgreyf-9-f-9-f-9, #f9f9f9);
35 color: var(--cpblue-182940, #182940);
36 font-family: Roboto;
37 font-size: 14px;
38 font-style: normal;
39 font-weight: 400;
40 line-height: 130%;
41 letter-spacing: 0.035px;
42 margin-bottom: 10px;
43 margin-left: 0px;
44 width: 100%;
45 }
46 .custom-by-portal-hcm .danhsach-tin-1-cot a.custom-title-news p {
47 color: var(--cpblue-182940, #182940);
48 font-family: Roboto;
49 font-size: 14px;
50 font-style: normal;
51 font-weight: 400;
52 line-height: 130%;
53 letter-spacing: 0.035px;
54 text-overflow: ellipsis;
55 word-wrap: break-word;
56 overflow: hidden;
57 max-height: 5em;
58 display: -webkit-box;
59 -webkit-line-clamp: 4;
60 -webkit-box-orient: vertical;
61 margin: 0;
62 }
63 .custom-by-portal-hcm .pd-4-0-4-6 {
64 padding: 4px 0px 4px 6px !important;
65 }
66
67 .custom-by-portal-hcm .pd-4-6 {
68 padding: 4px 6px;
69 }
70 .item-dst-1-cot-main:hover{
71 background-color: #0D4C92;
72 color: #ffffff;
73 }
74 .item-dst-1-cot-main:hover .title-news-custom > p,
75 .item-dst-1-cot-main:hover > a
76 {
77 color: #ffffff;
78 text-decoration: none;
79 }
80 .item-dst-1-cot:hover a.custom-title-news,
81 .item-dst-1-cot:hover a.custom-title-news p
82 {
83 background-color: #0D4C92;
84 color: #ffffff;
85 text-decoration: none;
86 }
87</style>
88<div class="row danhsach-tin-1-cot">
89 <div class="col-12">
90 <#assign portlet_display = portletDisplay
91 portlet_title = htmlUtil.escape(portlet_display.getTitle()) />
92 <#assign indexLocal = 0/>
93 <#if entries?has_content>
94
95 <#list entries as curEntry>
96 <#assign
97 renderer = curEntry.getAssetRenderer()
98 className = renderer.getClassName() />
99 <#if className == "com.liferay.journal.model.JournalArticle" && curEntry.getAvailableLanguageIds()?seq_contains(locale)>
100 <#assign
101 title = curEntry.getTitle(locale)
102 article = renderer.getArticle()
103 description = article.getDescription(locale)
104 ddmTemplateKey = article.getDDMTemplateKey()
105 curEntry = curEntry
106 viewURL = "${themeDisplay.getPathFriendlyURLPublic()}${themeDisplay.getSiteGroup().getFriendlyURL()}/chi-tiet-bai-viet/-/asset_publisher/rvlr/content/${renderer.getUrlTitle()}/39403"
107 indexLocal = indexLocal + 1 />
108 <#if curEntry.getAssetRenderer().getThumbnailPath(renderRequest)??>
109 <#assign smallImageUrl = curEntry.getAssetRenderer().getThumbnailPath(renderRequest) >
110 <#else>
111 <#assign smallImageUrl = "/documents/60205/77945/no-image.jpg" >
112 </#if>
113
114 <#if indexLocal == 1>
115 <div class="item-dst-1-cot-main">
116 <a href="${viewURL}">
117 <img src="${smallImageUrl}" class="w-100 img-3x4" alt="">
118 <div class="m-0 py-1 title-news-custom">
119 <p class="m-0 pt-2" title="${title}">${title}</p>
120 </div>
121 </a>
122 </div>
123 <hr class="mt-1 line">
124 <#else>
125 <div class="item-dst-1-cot">
126 <a href="${viewURL}" class="row custom-title-news ">
127 <div class="col-4 col-sm-4 col-xs-12 px-0">
128 <img src="${smallImageUrl}" class="w-100 img-fluid sdt-img-max-height img-3x4" alt="">
129 </div>
130 <div class="col-8 col-sm-8 col-xs-12 pd-4-6">
131 <p title="${title}">${title}</p>
132 </div>
133 </a>
134 </div>
135 </#if>
136 </#if>
137 </#list>
138 </ul>
139 </div>
140 </#if>
141</div>
142</div>
143
144<script>
145 $(document).ready(function () {
146 $("img.img-3x4").each(function () {
147 $(this).outerHeight($(this).width() * 0.6);
148 });
149 })
150</script>