|
Re: Two problems: msg#00053php.drupal.support
> This did the trick for me. > > static $current_date; > > if (format_date($node->created, 'custom', 'Ymd') != $current_date) { > > $output .= " <h2>". format_date($node->created, 'custom', 'F j, Y') > ."</h2>\n"; > $current_date = format_date($node->created, 'custom', 'Ymd'); > } *sighs* It's raw php code and it doesn't fit on node.tpl.php I need to use enclosed code like <?php print $date ?> The variables are different and I don't have a clue anout how to translate all that. I won't go anywhere. Abalieno -- [ Drupal support list | http://list.drupal.org/ ] |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Grouping nodes under a single date header: 00053, Abalieno |
|---|---|
| Next by Date: | Re: Grouping nodes under a single date header: 00053, Abalieno |
| Previous by Thread: | Re: Two problemsi: 00053, Tim Altman |
| Next by Thread: | Re: Two problems: 00053, Abalieno |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |