Skip to main content
Topic: SORT: ASC/DESC for LIST VIEW of Pages (GRID) (Read 3610 times) previous topic - next topic

SORT: ASC/DESC for LIST VIEW of Pages (GRID)

Hi,
Is it available SORTING  in standard the sort of VIEW pages auto generated ?
Should be there! maybe I'm missing how to enable it or how to implement it ?
Please let me know how to do this: when you click on a COLUMN in the VIEW (GRID) page to sort the GRID ASC or DESC at next click ?
Thanks for any feedback,
Catalin

Re: SORT: ASC/DESC for LIST VIEW of Pages (GRID)

Reply #1
There's sort property on the List Page. You can apply it on any field.



Regards

Re: SORT: ASC/DESC for LIST VIEW of Pages (GRID)

Reply #2
I see ! Thanks for quick answer ! I have still to learn, definitely.
Unfortunately I receive an error when I'm checking Sortable = "TRUE" to any field... Error bellow:
"Parse error: syntax error, unexpected 'products_list_product_code_tit' (T_STRING), expecting ')' in C:\xampp\htdocs\bep\app\views\partials\products\list.php on line 92"

The line 92, getting into error is bellow:
<?php Html :: get_field_order_link('product_code','<?php print_lang('products_list_product_code_title'); ?>'); ?>
What am I doing wrong ?

PS: I figure out after some testing....
I figure out after some testing that is a problem of embedding more "'"... so the following line is working:
<?php Html :: get_field_order_link('user_id','<?php print_lang("products_list_user_id_title"); ?>'); ?>

I've just replaced second pair of ' with a pair of "

...I think code generation should be adapted !
Respect, thanks, Catalin

Re: SORT: ASC/DESC for LIST VIEW of Pages (GRID)

Reply #3
Thanks for this update. Will fix the bug in our next release coming soon.
Regards