FormBrowser Sort order in list view

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
climberusa
Forum Members
Forum Members
Posts: 126
Joined: Sun Feb 26, 2006 7:10 pm

Re: FormBrowser Sort order in list view

Post by climberusa »

Any luck on this? I need to do the same thing.
scooper
Forum Members
Forum Members
Posts: 242
Joined: Fri Dec 09, 2005 12:36 pm
Location: Marlow, UK

Re: FormBrowser Sort order in list view

Post 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.
climberusa
Forum Members
Forum Members
Posts: 126
Joined: Sun Feb 26, 2006 7:10 pm

Re: FormBrowser Sort order in list view

Post 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?
User avatar
jd447
Forum Members
Forum Members
Posts: 134
Joined: Wed Jun 20, 2007 7:06 am
Location: geneva

Re: FormBrowser Sort order in list view

Post 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?
________________________
http://www.pixinside.ch
Post Reply

Return to “Modules/Add-Ons”