0
Hi there I have struggled all day trying to sort the genre list alphabetical in the drop down select list. Is there a easy and fast way to fix this?.. I have almost given up.
All help appericated.
All help appericated.
Responses (15)
-
Accepted Answer
-
Accepted Answer
0Has a mod to address this been released? With so many other filters automatically sorting alphabetically you would think genres would as well. Can someone provide the file names and code to make this change, please?
*Yes, I have a paid license.
Thank you for any assistance.
[edit] Then again, the tags feature is rather useless for my site so perhaps I'll edit the language files and change "tags" to "genres" then code out the genre sections from the album/artist edit pages. Considering I can remove genres from the search options and that the tags field can be set for multi-select, this may work better anyway. Problem solved! -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0In the main area itself and on all pages. For example we wanted the genre list to show alphabetically both in the front end of Joomla and in admin side. This would make it easier for users when entering new artists/material or just searching by genre. We wanted to find a way to sort the genre listing alphabetically to make it easier for users. when a user selects it either in the front or even when adding new material they would be able to select a genre from the list that would be sorted alphabetically.
hopefully that answers your question. Thanks for your time.
Degarrin -
Accepted Answer
-
Accepted Answer
0So using your example of /models/artist.php line 483, the SQL would go from this:
' SELECT * FROM #__muscol_genres '.
' WHERE parents = "0" '
to this:
' SELECT * FROM #__muscol_genres '.
' WHERE parents = "0" '
' ORDER BY genre_name '
Is that correct? I am pretty new to SQL, but if you tell me which files I need to update, then yes, I am comfortable enough to go in and modify the SQL.
Thank You
Degarrin -
Accepted Answer
-
Accepted Answer
0Actually, you left out the period at the end of the second line. Should be
' SELECT * FROM #__muscol_genres '.
' WHERE parents = "0" '.
' ORDER BY genre_name '
Also, in front-end files I believe you should do this to the helpers.php file not song.php. In the back-end (admin side), the files will be the same as Germi provided.
To also sort sub-genres, edit the same files by changing:
' OR parents LIKE "'.$genre->id.'" ) '
to:
' OR parents LIKE "'.$genre->id.'" ) '.
' ORDER BY genre_name ' -
Accepted Answer
-
Accepted Answer
0so I am working on the same thing I have found the line in artists.php and changed it, and its alphabetical now.
But I dont have the albums.php just album.php withou this line in it.. and also song.php doesn't have that line..?
Dit the location chanced in the last MC?
TIA
Appie-
Germinal Campsmore than a month agosorry.. which is the question? this thread is 4 years old...
-
-
Accepted Answer
0[b]sorry.. which is the question? this thread is 4 years old...
I want to get my genre's alphabetical sorted, but cant find the file albums.php which I need to chance to get my genre sorted.
And the file song.php doesnt have the line:
' SELECT * FROM #__muscol_genres '.
' WHERE parents = "0" '.
' ORDER BY genre_name '
So maybe because its indeed an old thread the files got chanced or replaced in later updates from MC?
Should I make a new topic for it?
Appie-
Germinal Campsmore than a month agothis can be found in the file helpers.php, the function is called getGenresData()
-
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »