Hi,

Since i need your directory module to show me the sticky nodes at the to pof list, I've patched the directory.module like this:

directory.module:560

$qry='SELECT n.nid FROM {node} n INNER JOIN {term_node} t ON t.nid = n.nid WHERE 1 '. $where .' AND n.status = 1 AND t.tid = '. db_escape_string($tid);
#augusto@fagioil.biz adds sticky sorting
$qry.=' order by n.sticky desc ';

$sql = db_rewrite_sql($qry);

and

function theme_directory_listing($node) {
  $node->teaser = ($node->teaser) ? "- $node->teaser" : $node->teaser;

#augusto@fagioli.biz add sticky css class
	unset ($finley);
	if ($node->sticky==1)
		$finley=" class='sticky' ";

  return "<li $finley >". l($node->title, "node/$node->nid"). $node->teaser . "</li>\n";
}

I hope this will help.

Comments

beginner’s picture

Status: Reviewed & tested by the community » Needs work
beginner’s picture

beginner’s picture

Status: Needs work » Closed (duplicate)
beginner’s picture

Version: 4.7.x-2.0 » 5.x-1.x-dev