Support Forum
Hi
I have a couple of pinned topic's in a support forum but want one to reside at the top of the forum at all times.
For example I would want a pinned topic of "Known Issues" to stay at the top and then any subsequent pinned topics to display below that.
I can't seem to see an easy way of doing this, I have seen a post regarding ordering of posts stating that the post date defines the order but I would assume that Pinned topics would be slightly different?
if it's not straight forward I'm happy to hard code the "know isses" pinned topic to stay at the top as it will need to be there all the time but would need a little direction of which file and where to place the code.
Cheers
Well of course it is easy when there is only one as it will always be at the top. The problem comes when there are more than one being pinned as the one at the very top will always be the one that had the most recent post - and that is the most recent by the post ID not the date of the post (which comes to the same post but is not so easy to manually change). So it's perhaps a little clunky but the way to force one pinned topic to always be at the top when there are more than one is to add a new post to it. So - is that possible in this case?
YELLOW
SWORDFISH
|
Not quite as easy as that I am afraid.
About the only way I can think of - at least off the cuff - would be to use the filter once the data object has been created that displays the forum view page. This could check if it is page 1, check if it is the correct forum, and then you could re-sort the array of records to bubble a specific one to the top. Bit hairy bet do'able.
But i will give it some more serious thought while I walk the dogs!
YELLOW
SWORDFISH
|
I didn't think it would be quite that easy Just wishful thinking 🙂
Might have to put it down as a feature request as I can know a bit of PHP and can tinker to an extent but that sounds out like it's a bit more involved than I can probably do at this moment in time. (time to brush up on my PHP skills I think)
Thanks for the reply though and enjoy walking your dogs.
Cheers
I can't think of a better way unless we build in some alternative support to core. Such as (and this is a perhaps of course at the moment) and option to define a pinned topic to ALWAYS be at the top regardless and maybe an option to show pinned topics on every page of a forum instead of just the first page. I will open that up for a discussion here.
YELLOW
SWORDFISH
|
1 Guest(s)