Page 1 of 1

Sorting in Formbrowser

Posted: Wed Nov 21, 2007 6:13 pm
by Neo
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

Re: Sorting in Formbrowser

Posted: Fri Nov 23, 2007 4:50 pm
by Neo
Hi all,

Any updates to this issue?  :(

Thanks,
Neo

Re: Sorting in Formbrowser

Posted: Fri Dec 28, 2007 4:55 pm
by liudaz
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:

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}
|@array_reverse:true reverses the array and starts from the last row up to the first. Worked for me.


liudaz ;)

Re: Sorting in Formbrowser

Posted: Sun Dec 30, 2007 3:32 pm
by liudaz
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

Posted: Thu Jan 03, 2008 6:19 am
by sjg
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___

Re: Sorting in Formbrowser

Posted: Wed Feb 13, 2008 4:36 pm
by climberusa
What would it cost to get this implemented?