<@blog.renderAncestryPath trail=ancestorList?default([]) endIndexOffset=1 />
<#-- Do this so that we don't have to find the content twice (again in renderSubContent) -->
<#assign lastNode = globalNodeTrail!?last/>
<#if lastNode?has_content>
<#assign subContent=lastNode.value/>
<#else>
<#assign subContent = delegator.findOne("Content", Static["org.apache.ofbiz.base.util.UtilMisc"]
.toMap("contentId", subContentId), true)/>
<#assign dummy = globalNodeTrail.add(lastNode)/>
#if>
<#assign thisContentId=subContentId!>
<#if !thisContentId?has_content>
<#assign thisContentId=contentId!>
#if>
|
<@renderSubContentCache subContentId=thisContentId />
|
<@checkPermission subContentId=subContentId targetOperation="HAS_USER_ROLE" contentPurposeList="RESPONSE" >
${uiLabelMap.EcommerceRespond}
@checkPermission>
|
<#--
<@checkPermission mode="not-equals" subContentId=subContentId targetOperation="CONTENT_CREATE|CONTENT_RESPOND"
contentPurposeList="RESPONSE" >
${permissionErrorMsg!}
@checkPermission>
-->
${uiLabelMap.EcommerceResponses}
<@loopSubContent contentAssocTypeId="RESPONSE" contentId=subContentId mapKey=""
pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\") && mapKey == null"
followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")">
<@traverseSubContentCache contentAssocTypeId="RESPONSE"
pickWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"
followWhen="contentAssocTypeId != null && contentAssocTypeId.equals(\"RESPONSE\")"
wrapTemplateId="">
<#assign indentStr=indent?default("0")/>
<#assign indent=indentStr?number/>
<#if 1 < indent >
<#assign fillRange=1..indent/>
<#assign indentFill=""/>
<#list fillRange as i>
<#assign indentFill = indentFill + " " />
#list>
<#assign thisContentId = ""/>
<#if nodeTrailCsv??>
<#assign idList = nodeTrailCsv?split(",")/>
<#if 0 < idList?size >
<#assign thisContentId = idList?last>
#if>
#if>
<#if content??>
${indentFill}
${uiLabelMap.CommonView}
${content.contentId!}-${content.description!}
|
#if>
#if>
@traverseSubContentCache>
@loopSubContent>
<#--
<@wrapSubContentCache subContentId=subContentId wrapTemplateId="WRAP_NEXT_PREV" >
@wrapSubContentCache >
-->