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