<@cms.content id=id absoluteId=false> <#assign a=object parentId=a.parentId!'' categoryId=a.categoryId!'' modelId=a.modelId!'' attribute=getContentAttribute(a.id) /> <@cms.category id=categoryId!><#assign category=object/> <@cms.model id=modelId!><#assign model=object/> <#macro bread category> <#if category.parentId?has_content> <@cms.category id=category.parentId> <@bread object/> ${object.name} >
<#if model?has_content> <#assign fieldList=model.fieldList![]/> <@cms.content id=parentId>
<@t.page 'content.parent'/>:
${(object.title)!}
<@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)!}
<#if model.onlyUrl>${(model.fieldTextMap['url'])!}<#else><@t.page 'url'/>:
${(a.url)!}
<#if a?has_content&&a.copied>
${(model.fieldTextMap['source'])!}:
${(attribute.source)!}
${(model.fieldTextMap['sourceUrl'])!}:
${(attribute.sourceUrl)!}
<#if fieldList?seq_contains('author')>
${(model.fieldTextMap['author'])!}:
${(a.author)!}
<#if fieldList?seq_contains('editor')>
${(model.fieldTextMap['editor'])!}:
${(a.editor)!}
<#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},
<#else>
${(model.fieldTextMap['tag'])!}:
<@cms.tag ids=a.tagIds> <#list map as j,tag> ${tag.name}<#sep>,
<@t.page 'publish_date'/>:
${(a.publishDate)!}<#if a.expiryDate?has_content> - ${(a.expiryDate)!}
<#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'/> <#if model.extendList?has_content> <@extendData extendList=model.extendList extendValues=attribute type='view'/> <#if a.hasImages>
<@t.page 'image_list'/>:
<@cms.contentFileList contentId=a.id fileTypes='image'> <#list page.list as file>
${(file.description)!}
<#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!}

<#if a.hasProducts>
<@t.page 'product_list'/>:
<@cms.contentProductList contentId=a.id> <#list page.list as product>
<#if product.cover?has_content>

${product.title}

${product.title}

${product.price}

${product.inventory}

${product.sales}

<#if fieldList?seq_contains('cover')&&a.cover?has_content>
${(model.fieldTextMap['cover'])!}:
${a.title}
<#if fieldList?seq_contains('description')>
${(model.fieldTextMap['description'])!}:
<#list (a.description!'')?split('\n') as line>${line}<#sep>
<#if fieldList?seq_contains('content')>
${(model.fieldTextMap['content'])!}(${(attribute.wordCount)!}):
${(attribute.text?no_esc)!}
<@cms.contentRelatedList contentId=a.id> <#if page.totalCount gt 0>
<@t.page 'recommend_info'/>:
<#list page.list as a> ${(a.title)!}
<@sys.authorized roleIds=admin.roles urls='cmsComment/list,cmsComment/edit'><#assign authorizedMap=map/> <@cms.commentList advanced=true contentId=a.id pageSize=0>
<#if authorizedMap['cmsComment/edit']> <@t.page 'comment'/> <#else> <@t.page 'comment'/> :
<#if authorizedMap['cmsComment/list']> ${page.totalCount!} <#else> ${page.totalCount!}