wanting no authoring info for specific content types

redsun82 - January 16, 2007 - 18:10

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?

Which version of Drupal? I

Seej - January 16, 2007 - 18:23

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!

Edit in Theme configuration

add1sun - January 16, 2007 - 18:31

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.

Theme Settings

bpocanada - January 16, 2007 - 18:35

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

http://www.example.com/admin/themes/settings

Uncheck the boxes on "Display post information on"

--
Roshan Shah
T : 604-630-4292
Vancouver, Canada
http://www.drupaldesigns.com - Drupal Portfolio
http://www.gujjuweb.com - Our recent launch
http://www.gloscon.com - Get a Drupal Services Franchise

Thanks for the replies! Knew

redsun82 - January 16, 2007 - 22:38

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

How about with comments?

kimangroo - April 22, 2007 - 11:56

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?!

 
 

Drupal is a registered trademark of Dries Buytaert.