Author: ashish
Date: Sat Aug 27 14:02:30 2016 New Revision: 1758037 URL: http://svn.apache.org/viewvc?rev=1758037&view=rev Log: Applied patch from jira issue - OFBIZ-7872 - Clean up commented out code in Free Marker Template for Content. Thanks Aman for the contribution. Modified: ofbiz/trunk/applications/content/template/cms/AddSubSite.ftl ofbiz/trunk/applications/content/template/cms/CMSContentEdit.ftl ofbiz/trunk/applications/content/template/cms/CMSSites.ftl Modified: ofbiz/trunk/applications/content/template/cms/AddSubSite.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/cms/AddSubSite.ftl?rev=1758037&r1=1758036&r2=1758037&view=diff ============================================================================== --- ofbiz/trunk/applications/content/template/cms/AddSubSite.ftl (original) +++ ofbiz/trunk/applications/content/template/cms/AddSubSite.ftl Sat Aug 27 14:02:30 2016 @@ -48,10 +48,6 @@ function win_cancel() { </tr> <tr> <td colspan="2"><input type="submit" name="submitBtn" value="Create"/></td> - <#-- - <td align="right"><a href="javascript:submit_add()">Create</a></td> - <td align="right"><a href="javascript:win_cancel()">Cancel</a></td> - --> </tr> </table> <input type="hidden" name="contentIdTo" value="${requestParameters.parentForumId}" /> Modified: ofbiz/trunk/applications/content/template/cms/CMSContentEdit.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/cms/CMSContentEdit.ftl?rev=1758037&r1=1758036&r2=1758037&view=diff ============================================================================== --- ofbiz/trunk/applications/content/template/cms/CMSContentEdit.ftl (original) +++ ofbiz/trunk/applications/content/template/cms/CMSContentEdit.ftl Sat Aug 27 14:02:30 2016 @@ -18,16 +18,6 @@ under the License. --> -<#-- -<#include "publishlib.ftl" /> ---> -<#-- -<#import "publishlib.ftl" as publish/> ---> -<#-- -${menuWrapper.renderMenuString()} ---> - <#-- Main Heading --> <table width='100%' cellpadding='0' cellspacing='0' border='0'> <tr> @@ -45,14 +35,6 @@ ${menuWrapper.renderMenuString()} <#if currentValue?has_content> <@renderTextData content=currentValue textData=textData! /> </#if> -<#-- -<#if textList?has_content> - <#list textList as map> - <@renderTextData content=map.entity textData=map.text /> - </#list> -</#if> ---> -<#-- ============================================================= --> <br /> <table border="0" width='100%' cellspacing='0' cellpadding='0' class='boxoutside'> @@ -168,66 +150,6 @@ ${menuWrapper.renderMenuString()} </tr> </table> -<#-- -<table border="0" width='100%' cellspacing='0' cellpadding='0' class='boxoutside'> - <tr> - <td width='100%'> - <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxtop'> - <tr> - <td valign="middle"> - <div class="boxhead"> Image Information</div> - </td> - <td valign="middle" align="right"> - <a href="<@ofbizUrl>EditAddImage?contentId=${imgContentId!}dataResourceId=${imgDataResourceId!}</@ofbizUrl>" class="submenutextright">Update</a> - </td> - </tr> - </table> - </td> - </tr> - <tr> - <td width='100%'> - <table width='100%' border='0' cellspacing='0' cellpadding='0' class='boxbottom'> - <tr> - <td> - <table width="100%" border="0" cellpadding="0" cellspacing='0'> - <tr><td align="right" nowrap="nowrap"><div class='tabletext'><b>Image</b></div></td><td> </td><td><div class='tabletext'> - <img src="<@ofbizUrl>img?imgId=${imgDataResourceId!}</@ofbizUrl>" alt="" /> -<div></td></tr> - </table> - </td> - </tr> - </table> - </td> - </tr> -</table> ---> - - -<#-- -<#macro contentTree currentValue > - - <#assign contentId = currentValue.contentId/> - <#assign dataResourceId = currentValue.dataResourceId/> - <#assign currentTextData = "" /> - <#if dataResourceId?has_content> - <#assign currentTextData=Static["org.apache.ofbiz.content.data.DataResourceWorker"].renderDataResourceAsText(delegator, dataResourceId, null, null, null, true) /> - <#if currentTextData?has_content> - <@renderTextData contentId=contentId textData=currentTextData /> - </#if> - </#if> - <#assign contentAssocViewList =Static["org.apache.ofbiz.content.content.ContentWorker"].getContentAssocViewList(delegator, contentId, null, "SUB_CONTENT", null, null)! /> - <#list contentAssocViewList as contentAssocDataResourceView> - <#assign contentId2 = contentAssocDataResourceView.contentId/> - <#assign mapKey = contentAssocDataResourceView.mapKey/> - <#assign dataResourceId2 = contentAssocDataResourceView.dataResourceId/> - <#assign currentTextData=Static["org.apache.ofbiz.content.data.DataResourceWorker"].renderDataResourceAsText(delegator, dataResourceId2, null, null, null, true) /> - <#if currentTextData?has_content> - <@renderTextData contentId=contentId2 mapKey=mapKey textData=currentTextData /> - </#if> - </#list> -</#macro> ---> - <#macro renderTextData content textData > <#assign contentId=content.contentId!/> <table border="0" width='100%' cellspacing='0' cellpadding='0' class='boxoutside'> Modified: ofbiz/trunk/applications/content/template/cms/CMSSites.ftl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/cms/CMSSites.ftl?rev=1758037&r1=1758036&r2=1758037&view=diff ============================================================================== --- ofbiz/trunk/applications/content/template/cms/CMSSites.ftl (original) +++ ofbiz/trunk/applications/content/template/cms/CMSSites.ftl Sat Aug 27 14:02:30 2016 @@ -25,9 +25,6 @@ function call_fieldlookup4(rootForumId, </script> -<#-- -<#include "publishlib.ftl" /> ---> <#if !rootForumId?has_content> <#assign rootForumId=requestParameters.rootForumId!/> </#if> |
Free forum by Nabble | Edit this page |