asprin
Active member
I have route format set up in ACP with values such as follows:
This is building URLs in the format of
which is great.
However, I would also like to add one more parameter to the URL which will determine the order column (created or updated) to be used in the
or
which should tell the controller that ordering should be done on the
As such, what should the route format look like (if at all it's achievable) to accommodate the above?
This is building URLs in the format of
Code:
index.php?fc/stats/page-2
However, I would also like to add one more parameter to the URL which will determine the order column (created or updated) to be used in the
ORDER BY
clause. So the use case is something like this:
Code:
index.php?fc/stats/created/desc/page-2
Code:
index.php?fc/stats/page-2/&order_by=created&mode=descending
which should tell the controller that ordering should be done on the
created
column with latest records first.As such, what should the route format look like (if at all it's achievable) to accommodate the above?