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

uccio’s picture

Assigned: Unassigned » uccio
Category: feature » bug

Thanks dsy73,

I will fix the problem ASAP

Uccio

uccio’s picture

Status: Active » Fixed
dsy73’s picture

Thank you

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.