I have made some tests with pagesetter and I think that I have a very interesting example:
If you replace in the plugin "listSelector"
$html = "<select name="\"$name\"">\n<option value="\"\""></option>\n";
foreach ($items as $item)
$html .= "<option value="\"$item[id]\"">$item[fullTitle]</option>\n";
$html .= "</select>\n";
return $html;
With
$smarty->assign("lista",$items);
Your are giving the array directly to smarty, so you can make something like that on your listheader template:
And you can have something similar to this
The last section is made like an usual list so it is pageable and has everything that is not included in the sections called by the modified listSelector plugin. This page must be invoqued with a filter like "&filter=comite:null" on the URL.
The sections are made dinamically, if one of the publications has a field "comite" with a value assigned from the list "comites" it will appear under a specified section, if not it will appear on the pageable "Otros informes" section that stores everything else.
I know that this is quite dirty but it does what I was exactly expecting. I know that this example is not well explained so if someone can explain it better than myself...
I am very new to smarty so I accept suggestions to improve it.
Regards,
Sergio
[Editado el 18/2/2004 por dorogoy]