I have modified my tracker module to not allow submissions from the 'page' node to show up by slightly changing some code, this...
$rows[] = array(
node_invoke($node->type, 'node_name'),
l($node->title, "node/$node->nid") .' '. (node_is_new($node->nid, $node->changed) ? theme('mark') : ''),
format_name($node)
);
}
and change it to:
if ($node->type != 'page') {
$rows[] = array(
node_invoke($node->type, 'node_name'),
l($node->title, "node/$node->nid") .' '. (node_is_new($node->nid, $node->changed) ? theme('mark') : ''),
format_name($node)
);
}
}
it works, but I noticed that while before, with the page node postings included, I had 4 pages of posts and without I should have only 2, 4 pages are still showing up...it's just that two of them are empty. Only the page numbers show up. So, for example, page 1 is almost full, pages 2 and 3 are empty but their respective page numbers still show up, and page 4 is full. How can I remove these empty tables without erasing the nodes themselves. I just don't want 'page' node info showing up in tracker or the empty table placeholders. Any ideas?
Thanks,
Larry
Comments
Pager
You should've modified the SQL queries above this to ignore nodes of type page. The query only selects items from the current page and does a count to get the total number of pages.
--
If you have a problem, please search before posting a question.