By Alan Currie on Wednesday, 11 June 2014
Replies 7
Likes 0
Views 0.9K
Votes 0
Is it possible to change the order of the team blogs. They are currently listed in the order I created them.
I have 13 and I want to move ID 13 to 2nd on the list
Hello Alan,

I am really sorry but unfortunately that is not possible right now By the way, the team blogs by default are actually sorted by the title in ascending mode.
·
Wednesday, 11 June 2014 02:47
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi
see attached the team blogs are not in ascending order. The 1st is 'P' the 2nd 'C' 3rd 'h' 4th 'C' and so on.
Can i change the order?
·
Wednesday, 11 June 2014 08:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alan,

Ah, it looks like you were referring to the module as I thought you were referring to the team blogs view. You can edit the file /modules/mod_teamblogs/helper.php and at line 29 locate the codes below,


if( $count != 0 )
{
$query .= ' LIMIT 0,' . $count;
}



Replace it with,


$query .= ' ORDER BY a.`title` ASC';

if( $count != 0 )
{
$query .= ' LIMIT 0,' . $count;
}

·
Wednesday, 11 June 2014 10:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Excellent, i take it with that code i could order ascending and descending.
Is there code i could use that i could order by ID so i could pick and choose the order. for example, if a team blog is not popular i could put it to the top for a period of time
Regards
Alan
·
Wednesday, 11 June 2014 14:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alan,

But that would be a little troublesome as you need to alter the id's of the team :x
·
Wednesday, 11 June 2014 22:14
·
0 Likes
·
0 Votes
·
0 Comments
·
no problem we'll stick ASC
·
Wednesday, 11 June 2014 22:54
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Alan Currie,

Okay
·
Wednesday, 11 June 2014 23:47
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post