Page 1 of 1

Re: FormBrowser Sort order in list view

Posted: Wed Feb 13, 2008 4:18 pm
by climberusa
Any luck on this? I need to do the same thing.

Re: FormBrowser Sort order in list view

Posted: Wed Feb 13, 2008 5:37 pm
by scooper
You should be able to reserve the order in smarty using 'array_reverse'.

So, if you want to show the most recent job posts firsts then go into the 'list template' for your form browser and change the line that reads:

{foreach from=$list item=entry}

to

{foreach from=$list|@array_reverse:true item=entry}

That will loop through your list in reverse.... well it does for me anyway.

Re: FormBrowser Sort order in list view

Posted: Fri Feb 15, 2008 6:18 pm
by climberusa
I've used this command as well but I found that when you have a large amount of entries and the data is paginated, the sort order no longer works. I know you can specify to show up to 100 entries per page but one some forms there is huge amount of data and the database connection times out before pulling more than about 30 entries at a time. Has anyone else witnessed this?

Re: FormBrowser Sort order in list view

Posted: Wed Nov 10, 2010 5:09 pm
by jd447
same here!

@array_reverse:true trick works for me until... there is a pagination.
I stile can't find a way around.

anyone?