You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2007/03/09 22:52:47 UTC
svn commit: r516574 - in
/ofbiz/trunk/applications/content/webapp/content/website:
WebSiteCMSContent.ftl WebSiteCMSNav.ftl
Author: jaz
Date: Fri Mar 9 13:52:46 2007
New Revision: 516574
URL: http://svn.apache.org/viewvc?view=rev&rev=516574
Log:
added support for URL_RESOURCE types
Modified:
ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl
ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSNav.ftl
Modified: ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl?view=diff&rev=516574&r1=516573&r2=516574
==============================================================================
--- ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl (original)
+++ ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSContent.ftl Fri Mar 9 13:52:46 2007
@@ -90,6 +90,7 @@
<option value="NONE">None (Tree, Category, etc)</option>
<option value="SHORT_TEXT">Short Text (255 chars.)</option>
<option value="ELECTRONIC_TEXT">Long Text</option>
+ <option value="URL_RESOURCE">URL Resource</option>
<option value="IMAGE_OBJECT">Image</option>
<option value="VIDEO_OBJECT">Video</option>
<option value="AUDIO_OBJECT">Audio</option>
@@ -298,6 +299,13 @@
<td>
<input type="hidden" name="isUploadObject" value="Y"/>
<input type="file" name="uploadedFile" class="inputBox" size="30"/>
+ </td>
+ </tr>
+ <#elseif (dataResourceTypeId == 'URL_RESOURCE')>
+ <tr>
+ <td><div class="tableheadtext">URL</div></td>
+ <td>
+ <input type="text" name="objectInfo" class="inputBox" size="40" maxsize="255" value="${(dataResource.objectInfo)?if_exists}"/>
</td>
</tr>
<#elseif (dataResourceTypeId == 'SHORT_TEXT')>
Modified: ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSNav.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSNav.ftl?view=diff&rev=516574&r1=516573&r2=516574
==============================================================================
--- ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSNav.ftl (original)
+++ ofbiz/trunk/applications/content/webapp/content/website/WebSiteCMSNav.ftl Fri Mar 9 13:52:46 2007
@@ -52,6 +52,12 @@
callEditor(true, node.widgetId, '', 'SHORT_TEXT');
}
);
+ dojo.event.topic.subscribe("newUrl/engage",
+ function (menuItem) {
+ var node = menuItem.getTreeNode();
+ callEditor(true, node.widgetId, '', 'URL_RESOURCE');
+ }
+ );
dojo.event.topic.subscribe("newImage/engage",
function (menuItem) {
var node = menuItem.getTreeNode();
@@ -354,6 +360,7 @@
<dl dojoType="TreeContextMenu" id="webCmsContextMenu" style="font-size: 1em; color: #ccc;">
<dt dojoType="TreeMenuItem" id="newLong" caption="New Long Text"/>
<dt dojoType="TreeMenuItem" id="newShort" caption="New Short Text"/>
+ <dt dojoType="TreeMenuItem" id="newUrl" caption="New URL"/>
<dt dojoType="TreeMenuItem" id="newImage" caption="New Image"/>
<dt dojoType="TreeMenuItem" id="newVideo" caption="New Video"/>
<dt dojoType="TreeMenuItem" id="newAudio" caption="New Audio"/>