Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By redsun82 on
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?
Comments
Which version of Drupal? I
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:
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
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!
That's it
Thank you! I couldn't figure out where to do this for the life of me.
Theme Settings
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
Thanks for the replies! Knew it had to be simple :)
How about with comments?
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?!