Forum .LRN Q&A: Listbuilder and Portlets

Collapse
Posted by Malte Sussdorff on
If you are using listbuilder and portlets you are bound for trouble. Here is why:

- You can have multiple lists on one page. Sadly the listbuilder does not care which list you clicked on to resort the table, it will resort all tables on that page.

- Within .LRN the pages use a page_num to identify under which tab they are located. This variable needs to be passed through to all actions and all orderby statements.

The second problem can be solved by adding the page_num to the listbuilder (and the include, as well as the portlet code). But how do you solve the first one (without rewriting every single listbuilder portlet).

Collapse
Posted by Jose Pablo Escobedo Del Cid on
Hi Malte,

If you haven't found a solution for the first problem yet, you can try using the -orderby_name in the listbuilder, the default is orderby, but if you use different orderby_names for each listbuilder, you can be able to sort only the table that you want.

I hope this helps.

Regards,

jopez