Author: hansbak
Date: Mon Oct 29 02:14:30 2007
New Revision: 589554
URL:
http://svn.apache.org/viewvc?rev=589554&view=revLog:
show data resource image button only when data resource is of type 'image' and do not show text/html buttons
Modified:
ofbiz/trunk/applications/content/widget/content/DataResourceMenus.xml
Modified: ofbiz/trunk/applications/content/widget/content/DataResourceMenus.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/widget/content/DataResourceMenus.xml?rev=589554&r1=589553&r2=589554&view=diff==============================================================================
--- ofbiz/trunk/applications/content/widget/content/DataResourceMenus.xml (original)
+++ ofbiz/trunk/applications/content/widget/content/DataResourceMenus.xml Mon Oct 29 02:14:30 2007
@@ -95,19 +95,25 @@
</menu-item>
<menu-item name="editElectronicText" title="${uiLabelMap.ContentDataResourceText}" >
<condition>
- <not><if-empty field-name="currentValue.dataResourceId"/></not>
+ <and>
+ <not><if-empty field-name="currentValue.dataResourceId"/></not>
+ <not><if-compare field-name="currentValue.dataResourceTypeId" operator="equals" value="IMAGE_OBJECT"/></not>
+ </and>
</condition>
<link target="EditElectronicText?dataResourceId=${parameters.dataResourceId}"/>
</menu-item>
<menu-item name="editHtmlText" title="${uiLabelMap.ContentDataResourceHtml}" >
<condition>
- <not><if-empty field-name="currentValue.dataResourceId"/></not>
+ <and>
+ <not><if-empty field-name="currentValue.dataResourceId"/></not>
+ <not><if-compare field-name="currentValue.dataResourceTypeId" operator="equals" value="IMAGE_OBJECT"/></not>
+ </and>
</condition>
<link target="EditHtmlText?dataResourceId=${parameters.dataResourceId}"/>
</menu-item>
<menu-item name="uploadImage" title="${uiLabelMap.ContentDataResourceImage}" >
<condition>
- <not><if-empty field-name="currentValue.dataResourceId"/></not>
+ <if-compare field-name="currentValue.dataResourceTypeId" operator="equals" value="IMAGE_OBJECT"/>
</condition>
<link target="UploadImage?dataResourceId=${parameters.dataResourceId}"/>
</menu-item>