Closed (duplicate)
Project:
Directory
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2007 at 20:09 UTC
Updated:
17 May 2007 at 11:27 UTC
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
Comment #1
beginner commentedSee: http://drupal.org/patch/submit
Comment #2
beginner commentedduplicate of http://drupal.org/node/104269?
Comment #3
beginner commentedComment #4
beginner commented