[support] Removing the date from the "Page" content type

Neil Adair neila at magma.ca
Sun Oct 21 03:49:06 UTC 2007


Shai Gluskin wrote:
> What if you want divide up user and date, such as show user, but not 
> date? Do you have to mess with the theme to do that?
Yes. The file to edit in your theme is node.tpl.php

In Garland it's: line 12

    <span class="submitted"><?php print t('!date — !username', 
array('!username' => theme('username', $node), '!date' => 
format_date($node->created))); ?></span>

Neil
>
> Shai
>
> On 10/20/07, *Neil Adair * <neila at magma.ca <mailto:neila at magma.ca>> 
> wrote:
>
>     Lucas Holland wrote:
>     > What I'm trying to do is to remove the date from the "Page" content
>     > type so that no date is displayed when a "Page" is viewed.
>
>     You can set whether the user and date is displayed on each content
>     type in
>
>     /admin/build/themes/settings
>
>     "Display post information on"
>
>     Neil
>     --
>     [ Drupal support list | http://lists.drupal.org/ ]
>
>



More information about the support mailing list