By userofdrupal on
I recently installed the webforms module (5.x-1.9) so I could add a custom contact page to my site. So far it works great, but it's displaying authoring information at the top of the page which I don't want (e.g., it says "Submitted by SomeUser on Sun, 03/30/2008 - 13:20." at the top of the page ).
How can I hide the display of this authoring information?
Comments
How to...
Here's how to proceed:
<?php print t('Posted by')....Drupal will now use this template for every node of type Webform and will not print the authoring information.
Cheers,
efolia
unless I've mis-read the
unless I've mis-read the question you should be able to go to:
admin/build/themes/settings
and unselect the webform option for "Display post information on".
Ray Smith
http://RaymondSmith.com
Ray Smith
http://RaymondSmith.com
Thanks ray_223! This is the
Thanks ray_223! This is the quickest way to what I was looking for. I couldn't for the life of me figure out where the setting would be, I keep forgetting that there are some options under theme configuration.
Thanks too efolia, although ray_223's solution is what I was looking for, I think you just showed me something valuable about the template system. From your post I gather that you can create a template that is specific for each content type? Is that correct? So, if I wanted to create a node template just for "story" nodes I would create a template file named:
node-story.tpl.php
So if I create a custom content type with CCK I can totally control the display by making a node template for that type?? Is this right?
Yes you are right
efolia
That too
Indeed, that would work too, of course (silly me) ;-)
efolia
Disable post information
I'm using Drupal6.13:
Drupal -> Administer -> Themes -> ' ' Garland ' ' -> configure -> Global Settings ->
Disable post information on: (then tick or un-tick the content types on which you want post information displayed)