From c75057bb0fc99d56e1b7a48c5fecfe0cf0f6498d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 4 Jun 2001 15:40:39 +0000 Subject: CHANGES: - Added improved node scheduler: + Automatically post node at date 'xx/xx/xx, xx:xx'. + Automatically queue node at date 'xx/xx/xx, xx:xx'. + Automatically dump node at date 'xx/xx/xx, xx:xx'. Requires a database update, see ./updates/2.00-to-x.xx.sql! - Refactored the admin interface of node.module. It is only a start but it should show the direction we are going. + The new interface is easier to extend with new functionality and operations. New "edit xxx" links can easily be added on our way. + The new interface tries to cover all content- or node-related functions. Thus making a special admin interface for each new node type redundant. To demonstrate this, I removed the admin hook from page.module and forum.module. This removes quite a bit of logic from the invidual modules which is a good sign if you ask me. A centralized GUI or interface covering all node-related administration should make Drupal easier to administer. TODO: - All node-related nodes need updating. This should be trivial and I'll hapilly tackle this later tonight. - There will be bugs, and I'm still working on this but I would like to get some feedback (from Natrak et all) on both user-friendliness and usability of this new interface. I'm still working on it as we speak ... --- modules/index.module | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'modules/index.module') diff --git a/modules/index.module b/modules/index.module index 09c8e4abd..592eca038 100644 --- a/modules/index.module +++ b/modules/index.module @@ -77,7 +77,7 @@ function index_test_1() { $form .= index_collection_form($entry->collection); } $form .= "Select around and click the button below:
"; - $form .= form_submit("Click to test"); + $form .= form_submit("Click to test 1"); return form($REQUEST_URI, $form); } @@ -101,11 +101,20 @@ function index_test_2($edit) { return $output; } +function index_test_3() { + global $REQUEST_URI; + + $form .= "Fill out some meta-tags and search for those articles that matches best:
"; + $form .= form_submit("Click to test 2"); + + return form($REQUEST_URI, $form); +} + function index_entry() { $result = db_query("SELECT * FROM entry ORDER BY name"); $output .= "\n"; - $output .= " \n"; + $output .= " \n"; while ($entry = db_fetch_object($result)) { $output .= "\n"; } @@ -117,7 +126,7 @@ function index_entry() { function index_admin() { global $edit, $op, $id; - print "add new entry | entries | collections | help - test
\n"; + print "add new entry | entries | collections | help - test1
\n"; switch ($op) { case "add": @@ -129,12 +138,18 @@ function index_admin() { case "help": print index_help(); break; - case "test": + case "test1": print index_test_1(); break; - case "Click to test": + case "Click to test 1": print index_test_2($edit); break; + case "test2": + print index_test_3(); + break; + case "Click to test 2": + print index_test_4($edit); + break; case "collection": print index_collection(); break; -- cgit v1.2.3
namecollectionkeywords stringoparations
namecollectionmeta attributesoparations
". check_output($entry->name) ."". check_output($entry->collection) ."". check_output($entry->keyword) ."eid\">edit entry