added linksImcs feature
authorfh <fh>
Sun, 7 Oct 2001 06:36:38 +0000 (06:36 +0000)
committerfh <fh>
Sun, 7 Oct 2001 06:36:38 +0000 (06:36 +0000)
source/mircoders/producer/ProducerNavigation.java

index 841e26e..aab7d08 100755 (executable)
@@ -46,9 +46,18 @@ public class ProducerNavigation extends Producer {
                entityList = topicsModule.getByWhereClause("","title",-1);
                SimpleList topicList = HTMLTemplateProcessor.makeSimpleList(entityList);
 
+    // get the imclinks
+    entityList = linksImcsModule.getByWhereClause("", "sortpriority, title", -1);
+    SimpleList imcList = HTMLTemplateProcessor.makeSimpleList(entityList);
+
+    EntityList theParentList = linksImcsModule.getByWhereClause("to_parent_id=NULL", "sortpriority, title", -1);
+    SimpleList parentList = HTMLTemplateProcessor.makeSimpleList(theParentList);
+
                // put the informations into the navipagemodel
                naviPageModel = new SimpleHash();
                naviPageModel.put("topics", topicList);
+    naviPageModel.put("imclist", imcList);
+    naviPageModel.put("parentlist", parentList);
 
                htmlFileName = producerDocRoot + "/navigation.inc";