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.
News Order Sort
Moderator: Thorsten
Re: News Order Sort
Hi david_de,
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.
Currently the news are selected as the last 3 news ordered by the datum field in the faqnews table.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.
AFAIK we need to improve the news management in several aspects.david_de wrote:Perhaps I am the only person that has this problem? If so I can live with it.
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
Amazon.co.uk Wishlist
another ....
another simple request is a 'show all news' link ..
.. just like here!
.. just like here!
Re: another ....
Hi,
bye
Thorsten
noted for 2.0.jazcyk wrote:another simple request is a 'show all news' link ..
.. just like here!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: another ....
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.jazcyk wrote:another simple request is a 'show all news' link ..
.. just like here!
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.
Hi,
expect a better news module in the next 2.0 alpha releases... we're working on it!
bye
Thorsten
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
amazon.de Wishlist