FormBrowser Sort order in list view
-
- Forum Members
- Posts: 126
- Joined: Sun Feb 26, 2006 7:10 pm
Re: FormBrowser Sort order in list view
Any luck on this? I need to do the same thing.
Re: FormBrowser Sort order in list view
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.
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.
-
- Forum Members
- Posts: 126
- Joined: Sun Feb 26, 2006 7:10 pm
Re: FormBrowser Sort order in list view
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
same here!
@array_reverse:true trick works for me until... there is a pagination.
I stile can't find a way around.
anyone?
@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
http://www.pixinside.ch