Asset Publisher

null Họp mặt kỷ niệm 76 năm Ngày thành lập Quân đội Nhân dân Việt Nam

An error occurred while processing the template.
Can't convert this string to number: "237/-/asset_publisher/iLUTNW5aOw47/content/id/212220?plidlayout=237/-/asset_publisher/iLUTNW5aOw47/content/id/212220?plidlayout=237/-/asset_publisher/iLUTNW5aOw47/content/id/212220?plidlayout=237/-/asset_publisher/iLUTNW5aOw47/content/id/212220?plidlayout=237/-/asset_publisher/iLUTNW5aOw47/content/id/212220?plidlayout=237/-/asset_publisher/iLUTNW5aOw47/content/id/212220?plidlayout=237/-/asset_publisher/iLUTNW5aOw47/content/id/212220?plidlayout=237"
The blamed expression:
==> plidlayout?number  [in template "20101#20128#43055" at line 35, column 45]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign layout = layoutService.fetchL...  [in template "20101#20128#43055" at line 35, column 1]
----
1<style> 
2	.asset-full-content.clearfix.mb-5.show-asset-title { 
3		margin-bottom: 0 !important; 
4
5	.article-head { 
6		margin-bottom: 0; 
7
8	@media only screen and (max-width: 768px) { 
9		#contentText iframe { 
10			width: 100% !important; 
11
12		.article-head .article-info { 
13			margin-bottom: 0; 
14			padding: 15px 0 8px 0; 
15
16
17</style> 
18 
19<#assign  
20    title = .vars['reserved-article-title'].data 
21	portalURL = themeDisplay.getPortalURL()  
22	currentUrl = portalURL + themeDisplay.getURLCurrent()  
23	imageUrl = portalURL + .vars['reserved-article-small-image-url'].data  
24	srcfb = "https://www.facebook.com/plugins/like.php?href=${currentUrl}&width=172&layout=button_count&action=like&size=small&share=true&height=46&appId"  
25	displayDate = .vars['reserved-article-display-date'].data 
26	summary = .vars['reserved-article-description'].data/> 
27 
28 
29<#assign layoutService =  serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") /> 
30<#if (request.getParameter("plidlayout")?has_content)> 
31    <#assign plidlayout = request.getParameter("plidlayout") /> 
32    <#else> 
33    <#assign plidlayout = 2 /> 
34</#if> 
35<#assign layout = layoutService.fetchLayout(plidlayout?number) /> 
36<#assign curLayout = layoutService.fetchLayout(plid?number) /> 
37<#assign pageTitle = layout.getName(locale) /> 
38<#assign pageUrl = layout.getFriendlyURL(locale) /> 
39<#assign curPageTitle = curLayout.getName(locale) /> 
40<#assign originalLocale = .locale> 
41<#setting locale = localeUtil.getDefault()> 
42<#assign displayDate = displayDate?datetime("EEE, d MMM yyyy HH:mm:ss Z")> 
43<#assign locale = originalLocale> 
44<#assign displayDate = displayDate?string("HH:mm dd/MM/yyyy")> 
45 
46<script src="https://sp.zalo.me/plugins/sdk.js"></script> 
47<liferay-util:html-top outputKey="htmltop"> 
48    <meta name="url" property="og:url" content="${currentUrl}" /> 
49	<meta name="type" property="og:type" content="article" /> 
50    <meta name="title" property="og:title" content="${.vars['reserved-article-title'].data}" /> 
51    <meta name="image" property="og:image" content="${imageUrl}" > 
52</liferay-util:html-top> 
53<div class="main-content"> 
54	<div class="panel" id="main-body"> 
55		<div class="shortcode-content hreview"> 
56			<span style="font-weight: bold;font-size: 17px;border-left: 3px solid #ed0678;padding: 5px;background-color: darkgrey;" class="tieuDe-asset"><a href="/web/phuong-14${pageUrl}">${pageTitle}</a></span> 
57			<span  style="font-size: 17px;padding-left: 12px;font-weight: bold;">${curPageTitle}</span> 
58			<div class="article-head"> 
59				<div class="article-info" style="border-top: 0px;border-bottom: 0px;"> 
60					<div class="social-buttons float-md-left"> 
61                        ${displayDate} 
62					</div> 
63					<div class="social-buttons float-md-right"> 
64					    <a class="social-thing" onclick="voiceSpeak('contentText','voiceSex')"; style="margin-right: 5px;" 
65							data-toggle="tooltip" title="Đọc bài viết"> 
66							<img class="volume-up" src="/o/thanhuy-main-theme/images/icons/trothinh_volume-btn.png" style="vertical-align: middle;opacity: 1;width: 16px;"/> 
67						</a> 
68						<a id="void-pause" class="social-thing" onclick="voicePause()"; style="margin-right: 1px;display:none;" 
69							data-toggle="tooltip" title="Tạm dừng đọc"> 
70							<span class="fa fa-pause" style="vertical-align: middle;opacity: 1;width: 13px;color: dimgray;"/> 
71						</a> 
72						<a id="void-resume" class="social-thing" onclick="voiceResume()"; style="margin-right: 1px;display:none;" 
73							data-toggle="tooltip" title="Tiếp tục đọc"> 
74							<span class="fa fa-repeat" style="vertical-align: middle;opacity: 1;width: 13px;color: dimgray;"></span> 
75						</a> 
76						<a id="void-stop" class="social-thing" onclick="voiceCancel()"; style="margin-right: 1px;display:none;" 
77							data-toggle="tooltip" title="Dừng đọc"> 
78							<span class="fa fa-stop"style="vertical-align: middle;opacity: 1;width: 13px;color: dimgray;"/> 
79						</a> 
80						<a class="social-thing" style="margin-right: 5px;"> 
81							<img src="/o/thanhuy-main-theme/images/icons/trothinh_wall-ico.png" style="vertical-align: middle;opacity: 1;width: 1px;height: 13px"/> 
82						</a> 
83						<a class="social-thing" onclick="giamTuongPhan();" style="margin-right: 5px;" 
84							data-toggle="tooltip" title="Giảm tương phản"> 
85							<img src="/o/thanhuy-main-theme/images/icons/trothinh_bright-down-btn.png" style="vertical-align: middle;opacity: 1;width: 16px;"/> 
86						</a> 
87						<a class="social-thing" onclick="tangTuongPhan();" style="margin-right: 5px;" 
88							data-toggle="tooltip" title="Tăng tương phản"> 
89							<img src="/o/thanhuy-main-theme/images/icons/trothinh_bright-up-btn.png" style="vertical-align: middle;opacity: 1;width: 16px;"/> 
90						</a> 
91						<a class="social-thing" style="margin-right: 5px;"> 
92							<img src="/o/thanhuy-main-theme/images/icons/trothinh_wall-ico.png" style="vertical-align: middle;opacity: 1;width: 1px;height: 13px"/> 
93						</a> 
94						<a class="social-thing" onclick="fontMinus();" style="margin-right: 5px;" 
95							data-toggle="tooltip" title="Giảm cỡ chữ"> 
96							<img src="/o/thanhuy-main-theme/images/icons/trothinh_zoom-down-btn.png" style="vertical-align: middle;opacity: 1;width: 16px;"/> 
97						</a> 
98						<a class="social-thing" onclick="fontDefault();" style="margin-right: 5px;" 
99							data-toggle="tooltip" title="Cỡ chữ mặc định"> 
100							<img src="/o/thanhuy-main-theme/images/icons/trothinh_zoom-btn.png" style="vertical-align: middle;opacity: 1;width: 16px;"/> 
101						</a> 
102						<a class="social-thing" onclick="fontPlus();" style="margin-right: 5px;" 
103							data-toggle="tooltip" title="Tăng cỡ chữ"> 
104							<img src="/o/thanhuy-main-theme/images/icons/trothinh_zoom-up-btn.png" style="vertical-align: middle;opacity: 1;width: 16px;"/> 
105						</a> 
106						<a class="social-thing" style="margin-right: 5px;"> 
107							<img src="/o/thanhuy-main-theme/images/icons/trothinh_wall-ico.png" style="vertical-align: middle;opacity: 1;width: 1px;height: 13px"/> 
108						</a> 
109						<a class="social-thing" onclick="printPage('contentText');" style="margin-right: 5px;" 
110							data-toggle="tooltip" title="In bài viết"> 
111							<img src="/o/thanhuy-main-theme/images/icons/trothinh_print-btn.png" style="vertical-align: middle;opacity: 1;width: 16px;"/> 
112						</a> 
113						<a class="social-thing" href="https://mail.google.com/mail/?view=cm&fs=1&su=${title}&body=${currentUrl}" style="margin-right: 5px;" 
114							data-toggle="tooltip" title="Gửi mail" target="_blank"> 
115							<img src="/o/thanhuy-main-theme/images/icons/trothinh_mail-btn.png" style="vertical-align: middle;opacity: 1;width: 16px;height:13px"/> 
116						</a> 
117					</div> 
118					<input type="hidden" id="voiceSex" value="Vietnamese Female"></input> 
119					<input type="hidden" id="tuongphan" value="3"></input> 
120				</div> 
121			</div> 
122		</div> 
123		<div> 
124	        <h2 style="color: #ed0678; font-weight: bold; margin-bottom: 7px">${title}</h2> 
125	    </div> 
126		<div id="contentText"> 
127		    <b>${summary}</b> 
128		    ${noiDung.getData()} 
129		</div> 
130		<div class="article-info mt-3"> 
131			<div class="social-buttons left"> 
132                <div class="zalo-follow-only-button" data-oaid="3540423014405379625" style="width: 88px;"></div> 
133                <div class="zalo-share-button" data-href="" data-oaid="4499765515963062717" data-layout="1" data-color="blue" data-customize=false></div> 
134                <iframe src="${srcfb}" width="140" height="35" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allow="encrypted-media"></iframe> 
135		    </div> 
136		</div> 
137	</div> 
138</div> 
139<#macro getMetadataField 
140 	fieldName 
141
142 	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
143 		<span class="metadata-entry metadata-${fieldName}"> 
144 			<#assign dateFormat = "dd MMM yyyy - HH:mm:ss" /> 
145  
146 			<#if stringUtil.equals(fieldName, "author")> 
147 				<@liferay.language key="by" /> ${htmlUtil.escape(portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName()))} 
148 			<#elseif stringUtil.equals(fieldName, "categories")> 
149 				<@liferay_asset["asset-categories-summary"] 
150 					className=curEntry.getClassName() 
151 					classPK=curEntry.getClassPK() 
152 					portletURL=renderResponse.createRenderURL() 
153 				/> 
154 			<#elseif stringUtil.equals(fieldName, "create-date")> 
155 				${dateUtil.getDate(curEntry.getCreateDate(), dateFormat, locale)} 
156 			<#elseif stringUtil.equals(fieldName, "expiration-date")> 
157 				${dateUtil.getDate(curEntry.getExpirationDate(), dateFormat, locale)} 
158 			<#elseif stringUtil.equals(fieldName, "modified-date")> 
159 				${dateUtil.getDate(curEntry.getModifiedDate(), dateFormat, locale)} 
160 			<#elseif stringUtil.equals(fieldName, "priority")> 
161 				${curEntry.getPriority()} 
162 			<#elseif stringUtil.equals(fieldName, "publish-date")> 
163 				${dateUtil.getDate(curEntry.getPublishDate(), dateFormat, locale)} 
164 			<#elseif stringUtil.equals(fieldName, "tags")> 
165 				<@liferay_asset["asset-tags-summary"] 
166 					className=curEntry.getClassName() 
167 					classPK=curEntry.getClassPK() 
168 					portletURL=renderResponse.createRenderURL() 
169 				/> 
170 			<#elseif stringUtil.equals(fieldName, "view-count")> 
171 				${curEntry.getViewCount()} <@liferay.language key="views" /> 
172 			</#if> 
173 		</span> 
174 	</#if> 
175</#macro> 

Untitled Banner hình ảnh

DVCTT

VBQPPL

Untitled Banner hình ảnh

Asset Publisher