mcardle     2005/06/13 11:13:05 CEST

  Modified files:
    src/view/jsp/include box_newslast5_cached.inc 
  Log:
  added more help comments
  
  Revision  Changes    Path
  1.3       +8 -3      
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.2&r2=1.3&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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- box_newslast5_cached.inc  10 Jun 2005 15:47:12 -0000      1.2
  +++ box_newslast5_cached.inc  13 Jun 2005 09:13:05 -0000      1.3
  @@ -1,10 +1,13 @@
   <br>
       <%
  -    //Note: the variable 'id' is the current column number where this code 
is executed i.e. 1, 2 or 3
  +    //Note: the variable 'id' is the current column number where this code 
is executed i.e. 1, 2 or 3. It can
  +    //also be set to other values such as "main_id"
   
       //Containers Definitions over which to search/filter/sort over
       String[] newsContainerDefNames = new 
String[]{"newsContainer1","newsContainer2","newsContainer3",
        "newsContainermain_1","newsContainerLast5"+id};
  +    //"newsContainerLast5"+id is the name of the container where the search 
results will be aggregated
  +
       //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
   
  @@ -25,7 +28,7 @@
       //holds logically combined filter beans
       ContainerChainedFilter allfilters = null;
   
  -    //In live mode, create filters to return news entries without empty 
titles
  +    //In live/preview mode, create filters to return news entries without 
empty titles
       //These correspond to news entries in other languages.
       //Even if we don't include these filters, these entries in the current 
locale still won't be displayed
       //but the pagination includes them and this distorts item numbering.
  @@ -49,6 +52,8 @@
           ContainerFilterBean containerFilter2 = new 
ContainerFilterBean("newsStartDate", jParams.getEntryLoadRequest());
           containerFilter2.addClause(ContainerFilterBean.COMP_EQUAL,"");
   
  +        //We use ContainerChainedFilter so that we can combine the outputs 
of each filter with multiple logical
  +        //operators
           ContainerChainedFilter allNewsStartDateFilters = new 
ContainerChainedFilter(
           new ContainerFilterInterface[]{containerFilter1,containerFilter2},
           new int[]{ContainerChainedFilter.OR} );
  @@ -152,7 +157,7 @@
       //END - DO SORTING
       
//----------------------------------------------------------------------------------
   
  -
  +    //Get search result list
       JahiaContainerList newsContainerList = 
jData.containers().getContainerList( "newsContainerLast5"+id );
   
       newsContainerList.setIsContainersLoaded(false);
  

Reply via email to