<#-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <#-- Main Heading -->

${contentId!}


<#if currentValue?has_content> <@renderTextData content=currentValue textData=textData! />
  Links
<#assign rowCount = 0 /> <#assign rootForumId=rootForumId /> <@publishContent forumId=rootForumId contentId=contentId /> <#assign rootForumId2=rootForumId2 /> <@publishContent forumId=rootForumId2 contentId=contentId />

  Features
<#assign rowCount = 0 /> <#list featureList as feature> <#assign checked=""/> <#if feature.action?has_content && feature.action == "Y"> <#assign checked="checked='checked'"/> <#assign rowCount=rowCount + 1/> <#assign rowCount=rowCount + 1/>
Product Feature Has Feature
[${feature.productFeatureId}] - ${feature.description}
<@htmlTemplate.lookupField formName="updatefeatures" name="fieldValue0_o_${rowCount}" id="fieldValue0_o_${rowCount}" fieldFormName="LookupProductFeature"/>
<#macro renderTextData content textData > <#assign contentId=content.contentId!/>
 
Update
Content Name
 
${content.contentName!}
Description
 
${content.description!}
 
<#-- ${textData!} --> <@renderContentAsText subContentId=content.contentId editRequestName="/EditAddContent"/>
<#macro publishContent forumId contentId formAction="/updatePublishLinksMulti" indentIndex=0 catTrail=[]> <#local thisContentId=catTrail[indentIndex]!/> <#assign viewIdx = "" /> <#if requestParameters.viewIndex?has_content> <#assign viewIdx = requestParameters.viewIndex!?number /> <#assign viewSz = "" /> <#if requestParameters.viewSize?has_content> <#assign viewSz = requestParameters.viewSize!?number /> <#local indent = ""> <#local thisCatTrailCsv = "" /> <#local listUpper = (indentIndex - 1) /> <#if catTrail?size < listUpper > <#local listUpper = (catTrail?size - 1)> <#if 0 < listUpper > <#list 0..listUpper as idx> <#if thisCatTrailCsv?has_content> <#local thisCatTrailCsv = thisCatTrailCsv + ","/> <#local thisCatTrailCsv = thisCatTrailCsv + catTrail[idx]> <#if 0 < indentIndex > <#list 0..(indentIndex - 1) as idx> <#local indent = indent + "    "> <@loopSubContent contentId=forumId viewIndex=viewIdx viewSize=viewSz contentAssocTypeId="SUBSITE" returnAfterPickWhen="1==1";> <#local isPublished = "" /> <#assign contentAssocViewFrom=Static["org.apache.ofbiz.content.content.ContentWorker"].getContentAssocViewFrom(delegator, subContentId, contentId, "PUBLISH_LINK", null, null)! /> <#if contentAssocViewFrom?has_content> <#local isPublished = "checked='checked'" /> ${indent} <#local plusMinus="-"/> ${plusMinus} ${content.contentName!} <#assign rowCount = rowCount + 1 /> <@publishContent forumId=subContentId contentId=contentId indentIndex=(indentIndex + 1)/>