Closed (fixed)
Project:
Booktree
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
30 Jun 2009 at 17:33 UTC
Updated:
18 Jul 2009 at 19:30 UTC
Hello,
I would like to hide not published node. I think to add condition here:
>
//now write content only if necessary
if (strlen($c) > 2){
$content .= "<ul class=\"booktree\">\n". $c. "</ul>\n";
<
But I don't know how is the best to know if a node is published:
- $node=node_load($nid) and $node->status?
or
- SQL query ?
Thanks
Comments
Comment #1
uccio commentedThanks dsy73,
I will fix the problem ASAP
Uccio
Comment #2
uccio commentedComment #3
dsy73 commentedThank you