Menu

#2 Announcements - ORDER BY DATE/TIME

open
nobody
None
5
2010-01-21
2010-01-21
Dave
No

Currently, announcements are ordered by older (top) to new (bottom).

I think new announcements should be on TOP.
I also think date/time should be added so customers (and I) know when.

Discussion

  • WEFrank

    WEFrank - 2010-01-23

    1. Date/time will require a new field in the current 3 column announcments table. Pretty easy to add (could either default to system date/time or let admin enter date)

    2. templates/default/html/user/announce.php uses foreach on $announcements array.
    The array is loaded at line 57 of customer.php via $BL->announcements->find()
    which is declared in system/classes/model.class.php

    Looks like need ORDER BY ANN_ID DESC (or a new find->WithOrder( pass order here). the find() does have $this->orderby - so would need to set the order before the find.

    Hope this helps

     
  • Dave

    Dave - 2010-01-23

    Yeah I could do them myself but then I would have to make changes again and again in next ALP versions (if ever released).

     

Log in to post a comment.