|
Re: Two problems: msg#00027php.drupal.support
> Yes in the theme_node, use a static of global variable to store the date > of the last node, and then compare the current nodes date to this and > decide if you need to display the date. Eh, I forgot to say that I know nothing of PHP and I'm using phptemplate, I can just play with it. The node.tpl.php is like this: <div class="node<?php print ($static) ? " static" : ""; ?>"> <?php if ($page == 0): ?> <div class="title"> <?php print $title ?> </div> <?php endif; ?> <?php if ($avatar): ?> <div class="avatar"><?php print $avatar ?></div> <?php endif; ?> <div class="content"> <?php print $content ?> </div> <div class="posted"> Posted by <b><?php print $name ?></b> on <?php print $date ?> | <a href="<?php print $node_url ?>" title="<?php print $title ?>">permalink</a> | <?php if ($links): ?><?php print $links ?><?php endif; ?> </div> </div> I don't know about anything else, if I need to add something in there I'll need an example because I have no idea on how to do what you said. Abalieno -- [ Drupal support list | http://list.drupal.org/ ] |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Two problems: 00027, Gordon Heydon |
|---|---|
| Next by Date: | Re: Two problems: 00027, Gordon Heydon |
| Previous by Thread: | Re: Two problemsi: 00027, Gordon Heydon |
| Next by Thread: | Re: Two problems: 00027, Gordon Heydon |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |