By mansion on
The question seems to have been raised multiple time without any answer.
The taxonomy.module seems to have been patched in 4.7 to support a new sort parameter but there is nowhere this parameter can be set (at least it seems so).
If you know a solution to sort nodes by title on taxonomy pages, please help me.
TIA.
Comments
Still no way
So far as I know, you're right, there's unfortunately still no way to do this short of hacking the taxonomy module. To hack this, you would change the code:
$order = 'n.sticky DESC, n.created DESC'
in taxonomy.module to your desired ordering, e.g., n.title.
Views!
While the module is in betatest, and not completely documented if you're brave try views. I haven't tried this particular use myself but it's one that I've been meaning to.
Install views. Create a view that accepts taxonomy term as an argument.
When your view provides the data you want, create an alias using the path module, and alias taxonomy/term to the URL for the view you created.
-- Merlin
[Point the finger: Assign Blame!]
[Read my writing: ehalseymiles.com]
-- Merlin
[Read my writing: ehalseymiles.com]
[Read my Coding blog: Angry Donuts]
Thanks
Thanks, I will try views then.
I have since realized that
I have since realized that you can't just put in an alias to override taxonomy/term, but it can be done with conf_url_rewrite. Writing up an example to do this is on my views TODO list.
-- Merlin
[Point the finger: Assign Blame!]
[Read my writing: ehalseymiles.com]
-- Merlin
[Read my writing: ehalseymiles.com]
[Read my Coding blog: Angry Donuts]