mcardle 2005/06/10 17:47:12 CEST
Modified files:
src/view/jsp/include box_newslast5_cached.inc
Log:
added support for news generate from the simple.jsp template (where id =
"main_id" instead of 1 to 3 as on homepage.jsp)
Revision Changes Path
1.2 +4 -2
corporate_portal_templates/src/view/jsp/include/box_newslast5_cached.inc
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/corporate_portal_templates/src/view/jsp/include/box_newslast5_cached.inc.diff?r1=1.1&r2=1.2&f=h
Index: box_newslast5_cached.inc
===================================================================
RCS file:
/home/cvs/repository/corporate_portal_templates/src/view/jsp/include/box_newslast5_cached.inc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- box_newslast5_cached.inc 1 Jun 2005 17:20:18 -0000 1.1
+++ box_newslast5_cached.inc 10 Jun 2005 15:47:12 -0000 1.2
@@ -3,7 +3,8 @@
//Note: the variable 'id' is the current column number where this code
is executed i.e. 1, 2 or 3
//Containers Definitions over which to search/filter/sort over
- String[] newsContainerDefNames = new
String[]{"newsContainer1","newsContainer2","newsContainer3","newsContainerLast5"+id};
+ String[] newsContainerDefNames = new
String[]{"newsContainer1","newsContainer2","newsContainer3",
+ "newsContainermain_1","newsContainerLast5"+id};
//The (optional) search string to search for entered by the user
String userQueryString =
request.getParameter(JahiaSearchConstant.CLIST_SEARCHQUERY_INPUT_PREFIX +
"newsContainerLast5"+id); //i.e. clistsquery_newsContainerLast5
@@ -115,7 +116,8 @@
}
//manually limit the search to news containers only
luceneSearchString.append("(container_definition_name:newsContainer1
OR container_definition_name:newsContainer2"+
- " OR container_definition_name:newsContainer3 OR
container_definition_name:newsContainerLast5"+id+" )");
+ " OR container_definition_name:newsContainer3 OR
container_definition_name:newsContainermain_1"+
+ " OR container_definition_name:newsContainerLast5"+id+" )");
if (userQueryString!=null && !"".equals(userQueryString.trim())) {
luceneSearchString.append(" ) ");
}