Hi,everyone, I got a problem. When I click a tag, the website shows all the albums and photos that have this tag, but they were not sorted by their updating time. How can I make the right setting? I want the user to see the latest albums and photos first. Thanks for your help.
Posts: 25956
tag albums are ordered by the id:
->order_by("items.id")I guess you could change the order to creation.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 17
Thanks a lot. But how can I set function "order_by" to sort tag albums by updated time? So the latest modified album will be in the first place.
I can only find parameter items.id, items.title, but don't the parameter for updated time
. Thanks.
Posts: 17
Posts: 25956
And for the benefit of others, what did you do?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 17
Sorry to reply late.I'm not a programmer, but I searched Google and tried this in the file "tag.php":
// ->order_by("items.id")
->order_by("created",DESC)
Then I click one tag, the albums are sorted by the created time of the album. It worked well till now