Sorting in Formbrowser

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Neo
Forum Members
Forum Members
Posts: 62
Joined: Thu Jan 18, 2007 1:09 am

Sorting in Formbrowser

Post 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
User avatar
Neo
Forum Members
Forum Members
Posts: 62
Joined: Thu Jan 18, 2007 1:09 am

Re: Sorting in Formbrowser

Post by Neo »

Hi all,

Any updates to this issue?  :(

Thanks,
Neo
liudaz

Re: Sorting in Formbrowser

Post 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 ;)
liudaz

Re: Sorting in Formbrowser

Post 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.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm

Re: Sorting in Formbrowser

Post 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___
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
climberusa
Forum Members
Forum Members
Posts: 126
Joined: Sun Feb 26, 2006 7:10 pm

Re: Sorting in Formbrowser

Post by climberusa »

What would it cost to get this implemented?
Post Reply

Return to “Modules/Add-Ons”