Hi all,
I had recently installed the Formbrowser module (v 0.2) and I am trying to use the sorting functionality of this module. I wanted to sort the records based on the submission date and hence I included the code below in the page content
{cms_module module='FormBrowser' browser='job_submissions' sort_field='date' sort_dir='a'}
But when I view the records in the UI, it gives the error message below
Warning: Parameter sort_field is not known... dropped in /var/www/cms/cee-cms/lib/misc.functions.php on line 1281
Warning: Parameter sort_dir is not known... dropped in /var/www/cms/cee-cms/lib/misc.functions.php on line 1281
The URL for the website is below.
http://ww2.ce.gatech.edu/Employers/View-Job-Postings/
So seems like the module is not recognizing the sort field even though its a required field and has a value attached to it. Please let me know if there are any pointers to this problem.
Thanks,
Neo
Sorting in Formbrowser
Re: Sorting in Formbrowser
Hi all,
Any updates to this issue?
Thanks,
Neo
Any updates to this issue?

Thanks,
Neo
Re: Sorting in Formbrowser
Neo,
I have been looking for a whay of how to change sorting order. If you need just to reverse the sorting order by date, you can just put something like this in your list template:
|@array_reverse:true reverses the array and starts from the last row up to the first. Worked for me.
liudaz
I have been looking for a whay of how to change sorting order. If you need just to reverse the sorting order by date, you can just put something like this in your list template:
Code: Select all
{foreach from=$list|@array_reverse:true item=entry}
<tr>
<td>{$entry->viewlink}</td>
.....................
{if $allow_user_delete}<td>{$entry->deletelink}</td>{/if}
</tr>
{/foreach}
liudaz

Re: Sorting in Formbrowser
Anyway, sort_field and sort_dir parameters should be built in in the module. Right now, as for formbrowser v0.2, sorting doesnot work.
Re: Sorting in Formbrowser
FormBrowser hasn't been updated in a while, and needs work. I'm busy right now, so I haven't gotten to it.
It's on the list, but I don't really have an ETA, I'm afraid.
If someone wants to sponsor fixes, it'll get moved up in the queue. Otherwise, I'll work on it when I get some free time.
Sorry
___Samuel___
It's on the list, but I don't really have an ETA, I'm afraid.
If someone wants to sponsor fixes, it'll get moved up in the queue. Otherwise, I'll work on it when I get some free time.
Sorry

___Samuel___
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
-
- Forum Members
- Posts: 126
- Joined: Sun Feb 26, 2006 7:10 pm
Re: Sorting in Formbrowser
What would it cost to get this implemented?