Hi Khue,

Thank you for your time.

Ok for the dynamic multilinguistic multivalue. It is so sad... I will try to solve it 
myself. I guess I should modify the /jsp/jahia/engines/shared/smalltext_field.jsp file.

Concerning the filter, I have followed your instructions but it doesn't work. Is it 
link to cache? I think no because I have even tried to add /cache/offonce at the end 
of all url but without success.

For example, I wish a home page only with people with JSP skill.
If I make a search in my search page on people with PHP skill I have good results but 
when I click on home page it is people with PHP skill which appear.

Here is my logic

=================>Declaration of people in the header of template

jData.containers().declareContainer("people_container_list","People",people_fields,5,0);

=================>Target of people in search page

if ( people_container_filter_bean_vector.size()>0 )
{
ContainerFilters people_container_filter_beans = new 
ContainerFilters("people_container_list",jParams,people_container_filter_bean_vector);
request.setAttribute("people_container_list_filter_handler",people_container_filter_beans);
}

JahiaContainerList people_container_list = 
jData.containers().getAbsoluteContainerList( 
"people_container_list",reachPage(jData,1));
(reachPage returns the first page of the path=current site homepage)

=================>Target of people in home page
ContainerFilters people_container_filter_beans = new 
ContainerFilters("people_container_list",jParams,new Vector());
request.setAttribute("people_container_list_filter_handler",people_container_filter_beans);

JahiaContainerList people_gallery_container_list = 
jData.containers().getAbsoluteContainerList( 
"people_container_list",reachPage(jData,1));

Can you tell me if I misunderstand container declaration and target?Where is my error?
Why don't we use a getContainer method with a filter as parameter?

Julien

=============================================
Hi

1) to override the previous filtering result ( which is stored in session )
of a given container list, you can use a "dummy" filter on your home page :

  // create a filter with an empty vector of filter bean, so that all
containers will be returned
  ContainerFilters containerFilters =
    new ContainerFilters("directoryPeopleContainer",jParams,new Vector());
    // Store the list of filters in the request object.
    // It will be used later by the container list loader.

request.setAttribute("directoryPeopleContainer_filter_handler",containerFilt
ers);
 }

2) building dynamic multilinguistic multivalue is under developement,
unfortunately no-one sponsorizes it yet.

Regards,
Khue Nguyen




Acc�dez au courrier �lectronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34�/mn) ; t�l : 08 92 68 13 50 (0,34�/mn)



Reply via email to