Hi,
What determines the order of sticky FAQs?
Is there any way of controlling it?
Thanks
Sticky questions order
Moderator: Thorsten
Re: Sticky questions order
Hi,
just checked the code, the order is not specified. Any wishes? I would add it for 2.8.24
bye
Thorsten
just checked the code, the order is not specified. Any wishes? I would add it for 2.8.24
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Sticky questions order
Well, if we take that people do not put too many sticky notes out there, we could maintain it by having an input field besides the sticky checkmark. The input field would be for numerals that would set the order.
For example, I have 5 FAQs marked as sticky. I mark one of them with 1, and that one goes to the top. The rest is not marked by any number, so they stay as they would be now without the feature. Numbers would not have to be in strict +1 order. I could mark some with 100 to ensure it's always on the bottom.
Code would check if the number is present, and sort them by that. If the field is empty, set it however it gets set now.
Having a separate page where you can drag and drop to sort them would be nicer and easier for management, but probably an overkill.
Thank you
For example, I have 5 FAQs marked as sticky. I mark one of them with 1, and that one goes to the top. The rest is not marked by any number, so they stay as they would be now without the feature. Numbers would not have to be in strict +1 order. I could mark some with 100 to ensure it's always on the bottom.
Code would check if the number is present, and sort them by that. If the field is empty, set it however it gets set now.
Having a separate page where you can drag and drop to sort them would be nicer and easier for management, but probably an overkill.
Thank you
Re: Sticky questions order
Hi,
that's not possible in 2.8, as it would break the database scheme. That could be done for 2.9. I can only implement a simple solution like using the ID for ordering.
bye
Thorsten
that's not possible in 2.8, as it would break the database scheme. That could be done for 2.9. I can only implement a simple solution like using the ID for ordering.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Sticky questions order
Then... order by date/time. Once sorted as we want, we leave it.
Re: Sticky questions order
Hi,
ascending or descending?
bye
Thorsten
ascending or descending?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Sticky questions order
Newest first.
Thanks
Thanks