Xtemplate has a rather nice feature allowing you to turn off "submitted by" info ("post info") by node type. This patch gives phptemplate the same functionality. It adds a "toggle post information" section to the theme config settings, and makes a variable "display_info" available to templates.
For example, in node.tpl.php:
if ($display_info):
print t("Posted by") ." ". $name ." on ". $date . $terms endif;
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | node.tpl-php_posted_info.patch | 811 bytes | mrowe |
| phptemplate_posted_info.patch | 2.09 KB | mrowe |
Comments
Comment #1
mrowe commentedSorry, just realised it would probably be nice to include a patch for the default node.tpl.php also.
Comment #2
drewish commentedNot sure when this was fixed but admin/themes/settings lets you select which nodes have the posted by information displayed.
Comment #3
(not verified) commented