@cms.content id=id absoluteId=false>
<#assign
a=object
parentId=a.parentId!''
categoryId=a.categoryId!''
modelId=a.modelId!''
attribute=getContentAttribute(a.id)
/>
@cms.content>
<@cms.category id=categoryId!><#assign category=object/>@cms.category>
<@cms.model id=modelId!><#assign model=object/>@cms.model>
<#macro bread category>
<#if category.parentId?has_content>
<@cms.category id=category.parentId>
<@bread object/>
${object.name} >
@cms.category>
#if>
#macro>
<#if model?has_content>
<#assign fieldList=model.fieldList![]/>
<@cms.content id=parentId>
- <@t.page 'content.parent'/>:
-
${(object.title)!}
@cms.content>
- <@t.page 'category'/>:
-
<@bread category/> ${(category.name)!}
- <@t.page 'model'/>:
-
${(model.name)!}
- ${(model.fieldTextMap['title'])!}:
-
${(a.copied?then('['+t.pageMessage('copied')+']',''))!}${(a.title)!}
- <@t.page 'status'/>:
-
<@t.page 'status.content.'+(a.status)!/>
- <@t.page 'content.score'/>:
- ${a.score!}/${a.scoreUsers!}
<#if 1=a.status>
- <@t.page 'inspector'/>:
-
<@sys.user id=a.checkUserId>${(object.nickname)!}@sys.user>
#if>
- <#if model.onlyUrl>${(model.fieldTextMap['url'])!}<#else><@t.page 'url'/>#if>:
-
${(a.url)!}
<#if a?has_content&&a.copied>
- ${(model.fieldTextMap['source'])!}:
- ${(attribute.source)!}
- ${(model.fieldTextMap['sourceUrl'])!}:
-
${(attribute.sourceUrl)!}
#if>
<#if fieldList?seq_contains('author')>
- ${(model.fieldTextMap['author'])!}:
- ${(a.author)!}
#if>
<#if fieldList?seq_contains('editor')>
- ${(model.fieldTextMap['editor'])!}:
- ${(a.editor)!}
#if>
<#if category?has_content && (a.tagIds)?has_content>
<#if category.tagTypeIds?has_content>
<@cms.tagType ids=category.tagTypeIds>
<#list map as k,tagType>
- ${tagType.name}:
-
<@cms.tag ids=a.tagIds>
<#list map as j,tag>
<#if tag.typeId?has_content && tag.typeId=tagType.id>
${tag.name},
#if>
#list>
@cms.tag>
#list>
@cms.tagType>
<#else>
- ${(model.fieldTextMap['tag'])!}:
-
<@cms.tag ids=a.tagIds>
<#list map as j,tag>
${tag.name}<#sep>,
#list>
@cms.tag>
#if>
#if>
- <@t.page 'publish_date'/>:
-
${(a.publishDate)!}<#if a.expiryDate?has_content> - ${(a.expiryDate)!}#if>
<#include "../include_page/extendData.html"/>
<#if category?has_content&&category.extendId?has_content>
<@sys.extendFieldList extendId=category.extendId>
<@extendData extendList=list extendValues=attribute type='view'/>
@sys.extendFieldList>
#if>
<#if model.extendList?has_content>
<@extendData extendList=model.extendList extendValues=attribute type='view'/>
#if>
<#if a.hasImages>
- <@t.page 'image_list'/>:
-
<@cms.contentFileList contentId=a.id fileTypes='image'>
<#list page.list as file>
#list>
@cms.contentFileList>
#if>
<#if a.hasFiles>
- <@t.page 'attach_list'/>:
-
<@cms.contentFileList contentId=a.id fileTypes='video,audio,document,other'>
<#list page.list as file>
${(file.description)!} <@t.page 'clicks'/>:${a.clicks!}
#list>
@cms.contentFileList>
#if>
<#if a.hasProducts>
- <@t.page 'product_list'/>:
-
<@cms.contentProductList contentId=a.id>
<#list page.list as product>
<#if product.cover?has_content>
#if>
${product.title}
${product.price}
${product.inventory}
${product.sales}
#list>
@cms.contentProductList>
#if>
<#if fieldList?seq_contains('cover')&&a.cover?has_content>
- ${(model.fieldTextMap['cover'])!}:
-
#if>
<#if fieldList?seq_contains('description')>
- ${(model.fieldTextMap['description'])!}:
-
<#list (a.description!'')?split('\n') as line>${line}<#sep>
#list>
#if>
<#if fieldList?seq_contains('content')>
${(model.fieldTextMap['content'])!} (<@t.page "word_count"/>:${(attribute.wordCount)!}):
${(attribute.text?no_esc)!}
#if>
#if>
<@cms.contentRelatedList contentId=a.id>
<#if page.totalCount gt 0>
- <@t.page 'recommend_info'/>:
-
<#list page.list as a>
${(a.title)!}
#list>
#if>
@cms.contentRelatedList>
<@sys.authorized roleIds=admin.roles urls='cmsComment/list,cmsComment/edit'><#assign authorizedMap=map/>@sys.authorized>
<@cms.commentList advanced=true contentId=a.id pageSize=0>
-
<#if authorizedMap['cmsComment/edit']>
<@t.page 'comment'/>
<#else>
<@t.page 'comment'/>
#if>
:
-
<#if authorizedMap['cmsComment/list']>
${page.totalCount!}
<#else>
${page.totalCount!}
#if>
@cms.commentList>