Author Topic: Comment ordering?  (Read 3306 times)

Jon

  • Newbie
  • *
  • Posts: 5
    • View Profile
Comment ordering?
« on: July 16, 2009, 11:23:04 am »
Hi to all,

Can anyone tell me if there is a way to order the comments in Notes please ( I've checked the manual and searched the forums to no avail)? I'd like to be able to set these so that the latest comment appears first when opening a note.

Many thanks,

Jon
Discussion is an exchange of knowledge; argument is an exchange of ignorance."
- Robert Quillen

Pet

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 638
  • Always mining for solutions!
    • View Profile
    • The Bet!
Re: Comment ordering?
« Reply #1 on: July 21, 2009, 03:55:47 am »
There is no way to set this at the current time.  You could submit it as a feature request.
Support OpenGoo - Sponsor a Feature! | Follow me on Twitter | OG Support Chat | Did you turn debugging on?

Jon

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Comment ordering?
« Reply #2 on: July 21, 2009, 07:40:52 am »
Shall do thanks...
Discussion is an exchange of knowledge; argument is an exchange of ignorance."
- Robert Quillen

conrado

  • Administrator
  • Hero Member
  • *****
  • Posts: 998
  • Conrado
    • View Profile
    • Feng Office
    • Email
Re: Comment ordering?
« Reply #3 on: July 25, 2009, 12:39:20 am »
This is something I would like too.  ;)
Get Official Support for your Feng Office. Support the development team. Sign up for a Free Trial here.

webinstinct

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Comment ordering?
« Reply #4 on: December 28, 2009, 01:34:04 am »
Alright, I figured this out. It was too critical for me. I submit this solution with the caveat that I am only about a week into OpenGoo (Feng) and do NOT fully understand the architecture etc. Their code is at the same time ridiculously complex and totally inspiring.  :)

Plus,  I just implemented this solution. So for all I know, I solved one problem and created another. But here is what I did:

IN THIS FILE: application/models/comments/Comments.class.php
CHANGE SORT ORDERS to:  `created_on` DESC  (4 of them)

This will display the comments in the correct (reverse) order. But the numbering will still be ascending (1..2..3..etc.). To change the numbering (3..2..1..):

IN THIS FILE: application/views/comment/object_comments.php
AND THIS FILE: application/views/comment/object_comments_for_print.php
CHANGE  $counter=0  TO  $counter=count($comments)+1
AND CHANGE  $counter++  TO  $counter--


dabrowski

  • Freshman
  • *
  • Posts: 47
    • View Profile
    • Email
Re: Comment ordering?
« Reply #5 on: June 23, 2011, 09:36:43 am »
Could this be done with time slots, too? Would it be a similar edit?

dabrowski

  • Freshman
  • *
  • Posts: 47
    • View Profile
    • Email
Re: Comment ordering?
« Reply #6 on: June 23, 2011, 09:44:01 am »
Answer: Yes, save for no "print" file. :)