2

I'm trying to modify the content/article display detail and I'm not sure it that's done from the admin or from the xx.tpl.php file...(and if so which one)

I have something like this (in a custom theme done by someone else..I'm just continuing the work): Text By: XXX Date published : YYY

Ipsum lorem ..x.x.x.x.x.x. .x.x.x.x.x.x.xx..x.x.x.x.x

Comments

I want to move the text by and date.. below the text body..

PartySoft
  • 2,749
  • 7
  • 39
  • 55

1 Answers1

1

You can move the author and date by modifying your theme's node.tpl.php file. Specifically, you'll want to move the section that prints $submitted to be below the section that prints $content.

If your theme does not contain a node.tpl.php file, you can override the default by copying the default from /modules/node/node.tpl.php. When adding a new template to your theme, you will need to clear the theme cache, in order for the new file to be recognized.

Matt V.
  • 9,703
  • 10
  • 35
  • 56
  • thanks a bunch, I didn't knew from where to find a default template for that, I thought it was the node file, but I wasn't sure. How about if I want different layouts for different content types? – PartySoft Jan 30 '11 at 20:37
  • You can create different layouts for different content types by creating specific node.tpl.php template files for the specific content types, in the format node-[type].tpl.php. See the Core templates and suggestions page for more details: http://drupal.org/node/190815 – Matt V. Jan 30 '11 at 20:49
  • When in doubt about which template file to override, use the Theme developer module: https://drupal.org/project/devel_themer – Matt V. Jan 30 '11 at 20:52
  • node.tpl.php contains only
    , and $content has the actual content, so no way to override it at least from here
    – PartySoft Jan 30 '11 at 21:20
  • In that case, install the Theme Developer module mentioned above and use it to find the correct template file to override. – Matt V. Jan 30 '11 at 21:52