show nodes alphabetically

guppydrupal - December 20, 2007 - 08:45
Project:Link to content
Version:5.x-2.x-dev
Component:User interface
Category:task
Priority:normal
Assigned:stBorchert
Status:active
Description

great module. one quick question. is it possible to show the nodes alphabetically rather than when it was last modified?

thanks

guppy

#1

stBorchert - December 20, 2007 - 09:05

Hi.
Unfortunately it isn't possible without modifying the module (yet).
Open the file "linktocontent_node.module" (directory "contrib/linktocontent_node") and modify line 236 ($order):

<?php
function _linktocontent_node_query_nodes($tid) {
 
$order = 'n.sticky DESC, n.created DESC';
 
$descendant_tids = array();
?>

to
<?php
function _linktocontent_node_query_nodes($tid) {
 
$order = 'n.title ASC';
 
$descendant_tids = array();
?>

Hope, this helps (next version will be sortable by config ;-) ).

greetings,

Stefan

#2

stBorchert - February 28, 2008 - 22:43
Version:5.x-1.7» 5.x-2.x-dev
Category:support request» task

moved task to new development version

#3

stBorchert - February 28, 2008 - 22:45
Assigned to:guppydrupal» stBorchert

update assignment

 
 

Drupal is a registered trademark of Dries Buytaert.