Commit d510ecc0 by Ildar Safiullin

news

parent 5c969a65
<style>
#entrynews .title-text{
margin: 3px 0 3px 0;
color: #004376;
font-size: 14px;
}
#entrynews .date{
margin: 3px 0 3px 0;
}
</style>
<div id="entrynews">
<#if ddmimg.getData()?? && ddmimg.getData() != "">
<img alt="${ddmimg.getAttribute("alt")}" src="${ddmimg.getData()}" style="width: 200px; float:left; margin: 0 7px 7px 0;" />
</#if>
<#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleService")>
<#assign dateFormat = dateFormatFactory.getSimpleDateFormat("dd.MM.yyyy") />
<#assign modifieDate = .vars['reserved-article-modified-date'].data />
<div class="date color_red">
<@liferay_ui["icon"]
cssClass="header-back-to"
icon="angle-left"
markupView="lexicon"
method="get"
url="/newsroom"
/>
&nbsp;&nbsp;
${modifieDate}
</div>
<div class="title-text">
${.vars['reserved-article-title'].data}
</div>
${newshtml.getData()}
<#assign journalArticleId = .vars['reserved-article-id'].data>
<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
<#assign AssetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
<#assign article = JournalArticleLocalService.getArticle(getterUtil.getLong(scopeGroupId), .vars['reserved-article-id'].data)>
<#assign asset = AssetEntryLocalService.getEntry('com.liferay.journal.model.JournalArticle', article.resourcePrimKey) >
<#list asset.getTags() as tag>
<code>${tag.name}</code>
</#list>
</div>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment