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);
+
// get the newswire
whereClause="is_published=true AND to_article_type >= 1";
entityList = contentModule.getContent(whereClause,"date desc, webdb_create desc",0,newsPerPage);
* pick the biggest one. or is there
* another way around this that I am missing?
* can we make getIdasInt() or can we just have
- * another getId() that returns an Int and the VM
+ * another getId() that returns an Int and the VM
* will handle it transparantly? -mh
*/
try {
tinyIcon = MirConfig.getProp("Producer.Icon.TinyText");
iconAlt = "Text";
}
-
+
try{
//mediaList = HTMLTemplateProcessor.makeSimpleList(upMediaEntityList);
contentHash = (SimpleHash)newsWireList.get(i);
} //enf for featurueList.size..
-
+
/*for (int i=0; i < entityList.size();i++) {
currentContent = (EntityContent)entityList.elementAt(i);
//fetching/setting the images
startPageModel = new SimpleHash();
startPageModel.put("breakingnews", breakingList);
startPageModel.put("topics", topicList);
+ startPageModel.put("imclist", imcList);
+ startPageModel.put("parentlist", parentList);
startPageModel.put("newswire", newsWireList);
startPageModel.put("startspecial", startItemList);
startPageModel.put("features", featureList);
htmlFileName = producerDocRoot + "/index.shtml";
-
+
produce(startPageTemplate, htmlFileName, startPageModel, htmlout);
// Finish