Some improvments for item display
parent
fcf62c0c9d
commit
b034d7d321
|
|
@ -1,11 +1,19 @@
|
|||
<#import "./main.html.ftl" as main>
|
||||
<#import "./contentitems/${CmsPagesContentItemTypeModel.itemClass}.html.ftl" as contentitem>
|
||||
<#-- <#import "./contentitems/${CmsPagesContentItemTypeModel.itemClass}.html.ftl" as contentitem> -->
|
||||
|
||||
<@main.librecms>
|
||||
<div class="container">
|
||||
<div class="row align-items-start justify-content-center">
|
||||
<div class="col-lg-8">
|
||||
<#if CmsPagesContentItemTypeModel.itemClass != "">
|
||||
<#assign itemTemplate = .getOptionalTemplate("./contentitems/${CmsPagesContentItemTypeModel.itemClass}.html.ftl")>
|
||||
<#if itemTemplate.exists>
|
||||
<#import "./contentitems/${CmsPagesContentItemTypeModel.itemClass}.html.ftl" as contentitem>
|
||||
<#else>
|
||||
<#import "./contentitems/default.html.ftl" as contentitem>
|
||||
</#if>
|
||||
<@contentitem.details />
|
||||
</#if>
|
||||
<#-- <h1>Index Item Title ${CmsPagesCategorizedItemModel.title}</h1>
|
||||
<pre>
|
||||
CmsPagesContentItemTypeModel.displayName = ${CmsPagesContentItemTypeModel.displayName}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,4 @@
|
|||
<#macro details>
|
||||
<h1>${CmsPagesCategorizedItemModel.title}</h1>
|
||||
<p class="item-description">${CmsPagesCategorizedItemModel.description}</p>
|
||||
</#macro>
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
<#macro details>
|
||||
<h1>${CmsPagesCategorizedItemModel.title}</h1>
|
||||
<p class="item-description">${CmsPagesCategorizedItemModel.description</p>
|
||||
<p class="item-description">${CmsPagesCategorizedItemModel.description}</p>
|
||||
|
||||
<div>
|
||||
${CmsPagesArticleModel.text}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,9 @@
|
|||
<@macro details>
|
||||
<#macro details>
|
||||
<h1>${CmsPagesCategorizedItemModel.title}</h1>
|
||||
<div>${CmsPagesNewsModel.getReleaseDate('yyyy-MM-dd')}</div>
|
||||
<p class="item-description">${CmsPagesCategorizedItemModel.description}</p>
|
||||
|
||||
<div>
|
||||
${CmsPagesNewsModel.text}
|
||||
</div>
|
||||
</@macro>
|
||||
</#macro>
|
||||
Loading…
Reference in New Issue