Andrey Subbotin wrote:
Hello nadmin-dev,Hmm... I keep wondering why there's a score attribute for an attachment and still there's neither "order" function in Aegir,
> Isn't there, there was one in nadmin.
mgd_list_topic_articles($topic-id, 'score');nor a mgd_blah_blah_blah function that'd let me list attachements ordered by "score"... Would it be that I keep searching in a wrong way? Any hints?
the second (optional) argument describes the sort for mgd_list_topic_articles, I don't remember all the valid options (somebody who likes to dig around the sources could check them) but heres a few:
- 'score' and 'reverse score' list sorted by score (and if scores match then alphabetically)
- 'calstart' lists by article calendar date (AFAIK there is no 'reverse calstart' though one would be nice for news listings when using the calendar field for date)
- 'created' and 'reverse created' list sorted by the creation timestamp, I don't know of the behaviour if timestamps match, it's quite unlikely.
- 'alpha' (the default) and 'reverse alpha' list alphabetically by title.
/Rambo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
