Maybe this is standard, but I did not find how to do it.

I want to have certain specific content types for which when displayed no authoring info is displayed (i.e. no "posted in XX/XX/XX by XXXX" just under the title). I guess Content Templates should be the module in which to do it, but I can't seem to find out how. I still want other content types to be displayed as usual.

Anyone can help?


rootgear’s picture

Which version of Drupal?

I am pretty new to Drupal theming, but I would do this in Drupal 5.0

In your theme directory, copy node.tpl.php to node-yournodetype.tpl.php

Edit the file you just made and look for:

 <?php if ($submitted): ?>
  <?php endif; ?>

I believe that is the authoring information.
Just delete that section if you don't want to display it.

I am not sure if that is the "best practices" way to do it, but it works for me!

add1sun’s picture

You can easily turn off that line per content type by going to Administer > Themes > Configure. You want to configure the global settings, not a specific theme. There is a section to chck and uncheck which content types will have the info line.

Drupalize.Me, The best Drupal training, available all the time, anywhere!

Cody.asdf’s picture

Thank you! I couldn't figure out where to do this for the life of me.

bpocanada’s picture

This would be in Theme Settings Global Configuration for your theme in Drupal 4.7.4

Uncheck the boxes on "Display post information on"

Roshan Shah
T : 604-630-4292
Vancouver, Canada - Drupal Portfolio - Our recent launch - Get a Drupal Services Franchise

redsun82’s picture

Thanks for the replies! Knew it had to be simple :)

kimangroo’s picture

I was wondering if there was an easy way to remove that information for comments too?

Actually I'd really like to keep the posted by information but replace the username with a generic term which doesn't link back to the user profile. Can anyone tell me what code I'd have to edit to do that?!