Sticky questions order

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
pmfuser
Posts: 106
Joined: Tue Apr 01, 2014 7:00 am

Sticky questions order

Post by pmfuser »

Hi,

What determines the order of sticky FAQs?

Is there any way of controlling it?

Thanks
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Sticky questions order

Post by Thorsten »

Hi,

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
pmfuser
Posts: 106
Joined: Tue Apr 01, 2014 7:00 am

Re: Sticky questions order

Post by pmfuser »

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
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Sticky questions order

Post by Thorsten »

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
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
pmfuser
Posts: 106
Joined: Tue Apr 01, 2014 7:00 am

Re: Sticky questions order

Post by pmfuser »

Then... order by date/time. Once sorted as we want, we leave it.
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Sticky questions order

Post by Thorsten »

Hi,

ascending or descending? :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
pmfuser
Posts: 106
Joined: Tue Apr 01, 2014 7:00 am

Re: Sticky questions order

Post by pmfuser »

Newest first.

Thanks
Post Reply