Nay Pyi Taw Sibin Guest House
An error occurred while processing the template.
The following has evaluated to null or missing: ==> videoType [in template "20116#20152#47538" at line 16, column 6] ---- 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: #if videoType.getData()?? [in template "20116#20152#47538" at line 16, column 1] ----
1<#-- Retrieve the published date meta data field of the web content -->
2<#assign
3 displaydate = .vars['reserved-article-display-date'].data
4 displaydate = displaydate?datetime("EEE, d MMM yyyy HH:mm:ss Z")
5 articleId = .vars['reserved-article-id'].data
6 assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
7 journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
8 journalArticle = journalArticleLocalService.getArticle(20143,articleId)
9 resourcePrimKey = journalArticle.getResourcePrimKey()
10 listCategories = assetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle",resourcePrimKey)
11 ministry = ""
12 value1 ='["value 1"]'
13 value2 ='["value 2"]'
14 downloadURL = ""
15/>
16<#if videoType.getData()??>
17 <#assign type = videoType.getData() >
18</#if>
19
20<#if type == value1>
21 <#if youtube.getData()??>
22 <#assign downloadURL = youtube.getData()>
23 </#if>
24<#elseif type == value2>
25 <#if uploadVideo.getData()??>
26 <#assign downloadURL = uploadVideo.getData()>
27 </#if>
28</#if>
29
30<#list listCategories as category>
31 <#if category.getVocabularyId() == 80291>
32 <#assign ministry = category.getTitle(locale)>
33 <#break>
34 </#if>
35</#list>
36<h2 class="title bigheight">${.vars['reserved-article-title'].data}</h2>
37<span class="redcolor uppercasetext">${ministry}/ ${location.getData()} / ${displaydate?string["MMMM dd, yyyy"]}</span>
38<br>
39<br>
40<div class="l2news_detail_imgWrapper">
41 <#if image.getData()?? && image.getData() != "">
42 <img width="480px" class="fullwidth topmargin20" data-fileentryid="${image.getAttribute("fileEntryId")}" alt="${image.getAttribute("alt")}" src="${image.getData()}" />
43 </#if>
44 <br>
45 <br>
46 <#if type == value1>
47 <a href="${downloadURL}" class="btn goldbg midtopmargin" target="_blank">View Youtube</a>
48 <#elseif type == value2>
49 <a href="${downloadURL}" class="btn goldbg midtopmargin" target="_blank">Download Video</a>
50 </#if>
51</div>
52<style>
53.mnp_body h2.title {
54 margin-bottom: 20px !important;
55}
56</style>