On my page i have this tag: {cms_module module='FormBrowser' browser='medlemmer'}
The page is shown correct.
Now I want to sort the output and change the tag to: {cms_module module='FormBrowser' browser='medlemmer' sort_field='Medlemsnummer' sort_dir='a'}
Now when I see the page it is blank.
How to solve this.
Søren
[Solved]FormBrowser - How to sort fields.
[Solved]FormBrowser - How to sort fields.
Last edited by tilde on Fri Feb 18, 2011 3:37 am, edited 1 time in total.
Re: FormBrowser - How to sort fields.
I still need a solution for this.
Søren
Søren
Re: FormBrowser - How to sort fields.
I don't think the sorting works as intended in the module. I believe it has something to do with the way the field name variable is captured, but I haven't looked into the code. Anyway, here's how I got around it.
You need the smarty tag: {FormBrowser browser='my-form' fbrp_sort_field=' ' fbrp_sort_dir='a'}
a or d is a valid value.
Now for the field name, your desired sorting field should already be sortable (ie, you can manually sort by clicking the field name at the top). Copy that URL and locate the fbrp_sort_field= value, which is probably something like 1&m203c0s
Now paste that into your smarty.
{FormBrowser browser='my-form' fbrp_sort_field='1&m203c0s' fbrp_sort_dir='a'}
and viola, it auto sorts.
You need the smarty tag: {FormBrowser browser='my-form' fbrp_sort_field=' ' fbrp_sort_dir='a'}
a or d is a valid value.
Now for the field name, your desired sorting field should already be sortable (ie, you can manually sort by clicking the field name at the top). Copy that URL and locate the fbrp_sort_field= value, which is probably something like 1&m203c0s
Now paste that into your smarty.
{FormBrowser browser='my-form' fbrp_sort_field='1&m203c0s' fbrp_sort_dir='a'}
and viola, it auto sorts.
Re: FormBrowser - How to sort fields.
ChrisF
Thank you.
Now the fields is sorted when I open the page.
Søren
Thank you.
Now the fields is sorted when I open the page.
Søren
Re: [Solved]FormBrowser - How to sort fields.
Problem and work-around confirmed.
Made a bugreport on this
http://dev.cmsmadesimple.org/bug/view/6601
Grtz. Rolf
Made a bugreport on this
http://dev.cmsmadesimple.org/bug/view/6601
Grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -