From: fh Date: Sun, 7 Oct 2001 06:36:38 +0000 (+0000) Subject: added linksImcs feature X-Git-Tag: prexmlproducerconfig~359 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=3762757580e709f68a1b6bbc0e9a275a84f2ff79;p=mir.git added linksImcs feature --- diff --git a/source/mircoders/producer/ProducerNavigation.java b/source/mircoders/producer/ProducerNavigation.java index 841e26e0..aab7d08f 100755 --- a/source/mircoders/producer/ProducerNavigation.java +++ b/source/mircoders/producer/ProducerNavigation.java @@ -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";