Hide unpublished nodes
dsy73 - June 30, 2009 - 17:33
| Project: | Booktree |
| Version: | 6.x-1.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Uccio |
| Status: | closed |
Jump to:
Description
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

#1
Thanks dsy73,
I will fix the problem ASAP
Uccio
#2
#3
Thank you
#4
Automatically closed -- issue fixed for 2 weeks with no activity.