News Order Sort

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

News Order Sort

Post by david_de »

I have a small problem when adding news in the proper order. The items I post are dates of events, when I add them as recieved the order by date is off at times.

Is it possible to easily change the order of the news items currently or could that be done in a future version? Something simple to move one item up or down until it is in the proper order? Currently I have to delete items then enter them again in order.

Perhaps I am the only person that has this problem? If so I can live with it. This is such a small problem on a wonderful FAQ. Thanks again to all of you at phpMyFAQ for your fine work. Thanks to the testers also.
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: News Order Sort

Post by matteo »

Hi david_de,
david_de wrote:Is it possible to easily change the order of the news items currently or could that be done in a future version? Something simple to move one item up or down until it is in the proper order? Currently I have to delete items then enter them again in order.
Currently the news are selected as the last 3 news ordered by the datum field in the faqnews table.
david_de wrote:Perhaps I am the only person that has this problem? If so I can live with it.
AFAIK we need to improve the news management in several aspects.
For your issue, waiting for a news code review (this will be done within the PMF 2.x release) a quick but dirty workaround would be to use something like phpMyAdmin and manually changing the datum field: it's quite easy because of the format is: YYYYMMDDhhmmss.
Another workaround would be to order the news by their id (a simple change in the generateNews() function is also needed) so it would be easier to manually change the id value which is a simple number.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

Post by david_de »

Thank you matteo that should work fine until the update is out.
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

another ....

Post by jazcyk »

another simple request is a 'show all news' link ..
.. just like here!
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: another ....

Post by Thorsten »

Hi,
jazcyk wrote:another simple request is a 'show all news' link ..
.. just like here!
noted for 2.0.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

Re: another ....

Post by david_de »

jazcyk wrote:another simple request is a 'show all news' link ..
.. just like here!
My concern is that the viewer expect a list to be in order by date. Example: the first item is Jan 1st second item is Feb 4th and the third item is Jan 20th. People will see the first and the second and stop looking thinking there is nothing else between Jan 1st and the Feb 4th date. Of course the list is a lot longer then three items.

I am not sure how hard it would be to just select an item on the news list then move it up or down the list until it is in the proper order. Mateo's solution of changing the date in Datem worked with some tinkering. First I figured out an order then set a date for the faqnews datem for one item. I then adjusted the dates on the other items either direction from that one date so they ended up in order.

I did it with phpMyAdmin and it did take some time doing each one individualy. If no one else is having this problem then it is probably not worth adding a sort order.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

expect a better news module in the next 2.0 alpha releases... we're working on it!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
david_de
Posts: 72
Joined: Tue Dec 13, 2005 12:09 am

Post by david_de »

Thorsten wrote: we're working on it!

bye
Thorsten
I should have known you would be one step ahead of me. :)
Post Reply