Project:Booktree
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Uccio
Status:closed (fixed)

Issue Summary

Hello,

I would like to hide not published node. I think to add condition here:

<?php
>
    
//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

#1

Category:feature request» bug report
Assigned to:Anonymous» Uccio

Thanks dsy73,

I will fix the problem ASAP

Uccio

#2

Status:active» fixed

#3

Thank you

#4

Status:fixed» closed (fixed)

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