Hi Thierry,

Container filter and sorts set Request attributes that are then read by Jahia when loading page content. The container ranking is used only when there are no conflicting sorting attributes passed. So you must remove the sorting options to have the default ranking behavior

Regards,
  Serge Huber.

At 17:12 04.06.2004, you wrote:
Hi,

Thanks but I've already tried this and it doesn't work on the document listing. But I found where the problem lies.
In fact, the use of a ContainerFilterByCategories on a containerList prevents from ordering the containerlist
manually with the containerlistproperties button. I don't know exactly why, and it seems there's no solution yet.


Thierry

-----Message d'origine-----
De : Philippe Vollenweider [mailto:[EMAIL PROTECTED]
Envoy� : vendredi 4 juin 2004 14:54
� : [EMAIL PROTECTED]
Objet : RE: document listing problems


Hello,

If you don't want to use the jahia sort handler, you can set it to null in
the request by doing somethink like this:

     request.setAttribute("yourcontainerlist_sort_handler",null);

Philippe

At 03.06.2004 18:21, you wrote:
>OK, then how can I sort the document list according to the order in the
>database? I thought that, when no sort is made in the templates,
>containers are listed in their "database order" (using the field "rank",
>right?). It seems to work this way for all types of containers I create,
>but not for the directoryDocContainer.
>
>Any suggestion would be very appreciated!
>
>Thierry Krebs
>
>-----Message d'origine-----
>De : Serge Huber [mailto:[EMAIL PROTECTED]
>Envoy� : jeudi 3 juin 2004 13:19
>� : [EMAIL PROTECTED]
>Objet : Re: document listing problems
>
>
>At 12:35 02.06.2004, you wrote:
> >Hello,
> >
> >I've got 2 different problems when using a modified (by me) version of
> >document listing template.
> >
> >-First, the Properties options allowing to sort automatically or manually
> >the list of document doesn't seem to work, the documents always show in
> >the same order. I've disabled the default sorting on
> >"metaDataLastModificationDate" in filters.inc, but nothing better happens.
> >Actually, even when using the default document_listing.jsp, it doesn't
> >work by me. Is it a common problem or specific to my computer?
> >Yet, the properties option of the other containerList work well.
>
>The properties "automatic" is not really what you think it is. All it does
>is sort the entries in the popup, but then it just saves this order into
>the database, and doesn't sort them again. And this ordering is then
>discarded when sorting filters are used on the list.
>
>
> >-The second problem is related to Jahia categories.
> >I created a Jahia category with a property "homepage" linking to a page
> >(let's say with ID=100) that uses my document_listing template. When I add
> >documents in other pages using the same template and I link the documents
> >to the Jahia category I just created, they appear on page 100 as expected.
> >But when I link another type of container (an article for example) to the
> >same Jahia category, the page 100 also shows a line with a "null" record
> >and a (*) linking to the page where the article is found !
> >Any idea why? And what can I do so that only the directoryDocContainer are
> >shown?
>
>Categories return all the objects, regardless of type, name, etc. You need
>to add a test for the object that is returned in your template to make sure
>only the type of objects you want are displayed.
>
>You can really think of categories as folders in a file system. If you list
>the children of a category, all the sub-folders and the files will be
>returned, it is then up to you to filter what you want.
>
>Regards,
>    Serge Huber.
>
>
>- -- --- -----=[ serge.huber at jahia dot com ]=---- --- -- -
>Jahia : A collaborative source CMS and Portal Server
>www.jahia.org Community and product web site
>www.jahia.com Commercial services company

-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company

- -- --- -----=[ serge.huber at jahia dot com ]=---- --- -- -
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company





Reply via email to