Update of /var/cvs/html/mmbase/edit/my_editors
In directory james.mmbase.org:/tmp/cvs-serv4041

Modified Files:
        config.jsp index.jsp 
Log Message:
'only editable' nodes made no sense



See also: http://cvs.mmbase.org/viewcvs/html/mmbase/edit/my_editors


Index: config.jsp
===================================================================
RCS file: /var/cvs/html/mmbase/edit/my_editors/config.jsp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- config.jsp  25 Apr 2008 16:41:06 -0000      1.18
+++ config.jsp  4 Feb 2009 09:38:33 -0000       1.19
@@ -89,8 +89,12 @@
 <ul>
   <li>the maximum age of the items that will be found: <b><mm:write 
referid="max_days" /></b> days;</li>
   <li>maximum number of items in each list: <b><mm:write referid="max_items" 
/></b>;</li>
-  <li>if you want all the node types to be shown or only the ones you are 
allowed to edit: <b><mm:write referid="type_list" /></b>; and</li>
-  <li>where you want the searchbox to be displayed: <strong><mm:write 
referid="search_box" /></strong> the searchresults.</li>
+  <%-- li>if you want all the node types to be shown or only the ones you are 
allowed to edit: <b><mm:write referid="type_list" /></b>; and</li --%>
+  <li>where you want the searchbox to be displayed: <strong><mm:write 
referid="search_box" /></strong> the searchresults; or</li>
+  <li>
+    the position of the content column vs. the sidebar, or vise versa: 
+    <strong><mm:write referid="columns_pos" /></strong> 
+  </li>
 </ul>
 
 <p>Your preferences are saved in several cookies starting with 'my_editors'. 
You'll find them in your browsers cookie jar.</p>
@@ -107,13 +111,13 @@
   <input type="text" name="max_items" value="<mm:write referid="max_items" />" 
size="9" maxlength="9" />
   or other lists.
 </div>
-<div class="row">
+<%-- div class="row">
   <label><strong>Show me</strong></label>
   <select name="type_list">
     <option label="all the node types" value="all"<mm:compare 
referid="type_list" value="all"> selected="selected"</mm:compare>>all the node 
types</option>
     <option label="only the editable node types" value="editable"<mm:compare 
referid="type_list" value="editable"> selected="selected"</mm:compare>>only the 
editable node types</option>
   </select>
-</div>
+</div --%>
 <div class="row">
   <label><strong>Show the searchbox</strong></label>
   <select name="search_box">


Index: index.jsp
===================================================================
RCS file: /var/cvs/html/mmbase/edit/my_editors/index.jsp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- index.jsp   25 Apr 2008 16:41:06 -0000      1.17
+++ index.jsp   4 Feb 2009 09:38:33 -0000       1.18
@@ -6,62 +6,6 @@
 <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="nl">
 <head>
   <%@ include file="inc/head.jsp" %>
-<%-- script type="text/javascript">
-var req;
-
-function loadXMLDoc(url) {
-    // branch
-    if (window.XMLHttpRequest) {        // Mozilla, Safari?
-        req = new XMLHttpRequest();
-        req.open("GET", url, true);
-        req.setRequestHeader('content-type', 'text/xml');
-        req.onreadystatechange = processReqChange;
-        req.send("");
-    } else if (window.ActiveXObject) {  // IE/Windows
-        req = new ActiveXObject("Microsoft.XMLHTTP");
-        if (req) {
-            req.onreadystatechange = processReqChange;
-            req.open("GET", url, true);
-            req.send();
-        }
-    }
-    
-}
-
-function processReqChange() {
-    // only if req shows 'complete'
-    if (req.readyState == 4) {
-        // only if 'OK'
-        if (req.status == 200) {
-            // proces something
-            
-            
-            response = req.responseXML.documentElement;
-            method = 
response.getElementsByTagName('method')[0].firstChild.data;
-            result = 
response.getElementsByTagName('result')[0].firstChild.data;
-            //countRelations('', result);
-            eval(method + '(\'\', result)');
-        } else {
-            alert("There was a problem retrieving the xml data:\n" + 
req.statusText);
-        }
-    }
-}
-
-function countRelations(input, response) {
-    if (response != '') {       // Response mode
-        alert("The response is: " + response)
-        message = document.getElementById('relcount');
-        message.classname = 'error';
-        message.innerHTML = "we hebben een waarde:" + response;
-    } else {                    // Input mode
-        url = "http://127.0.0.1:8080<mm:url page="/my_editors/xmlgetsome.jsp" 
/>?nr=" + input;
-        loadXMLDoc(url);
-        message = document.getElementById('relcount');
-        message.classname = 'hidden';
-    }
-}
-
-</script --%>
 </head>
 <body>
 <div id="frame">
@@ -69,7 +13,7 @@
 <div id="sidebar">
   <div class="padsidebar">
     <table border="0" cellspacing="0" cellpadding="3" id="nodetypes">
-    <caption>List of <strong><a href="config.jsp"><mm:write referid="list" 
/></a></strong> node types</caption>
+    <caption>Node types in MMBase</caption>
     <thead>
     <tr>
       <th scope="col" class="right">sort by <strong><a href="javascript:;" 
onclick="sortT('nodetypes', 0);">name</a></strong></th>
@@ -86,15 +30,15 @@
         <mm:listnodes jspvar="n">
           <mm:import id="name" jspvar="name" reset="true"><mm:field 
name="name" /></mm:import>
           <mm:import id="dnumber" reset="true">no</mm:import>
-          <mm:fieldlist type="create">
+          <mm:fieldlist type="create" nodetype="$name">
             <mm:fieldinfo type="name" id="fldname" write="false" />
-            <mm:compare referid="fldname" value="dnumber"><%-- test for 
fieldname dnumber --%>
+            <mm:compare referid="fldname" value="dnumber"><%-- test for 
fieldname dnumber (TODO: makes no sense, should be a more general setting) --%>
               <mm:import id="dnumber" reset="true">yes</mm:import>
             </mm:compare>
           </mm:fieldlist>
           <%-- import typedefs --%>
           <% if (cloud.hasNodeManager(name)) { // check if it is active %>
-                       <mm:compare referid="list" value="all" 
inverse="true"><%-- import only without dnumber --%>
+                       <mm:compare referid="list" value="all" inverse="true">
                          <mm:compare referid="dnumber" value="no"><% 
typelist.add(n); %></mm:compare>
                        </mm:compare>
                        <mm:compare referid="list" value="all"><% 
typelist.add(n); %></mm:compare>
@@ -122,21 +66,9 @@
 <div id="content">
 <mm:present referid="ntype">
   <div class="padcontent">
-  <!-- ### search and results ### -->
   <mm:compare referid="searchbox" value="after" inverse="true"><%@ include 
file="inc/searchbox.jsp" %></mm:compare>
   <%@ include file="inc/searchresults.jsp" %>
   <mm:compare referid="searchbox" value="after"><%@ include 
file="inc/searchbox.jsp" %></mm:compare>
-<%--  
-<div id="relcount" class="error">relcount is here</div>  
-
-<ul>
-<mm:listnodes type="text">  
- <li>
-  <a href="#" onclick="countRelations(<mm:field name="number" />,'');return 
false;">+</a> <mm:field name="title" />
- </li>
-</mm:listnodes>  
-</ul>
---%>
   </div><!-- / .padder -->
   <div class="padfoot">&nbsp;</div>
 </mm:present>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to