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.
on a node page is it posible to change the order of the article elements like this ?
<article>
<h1>My article</h1>
<p>Blah blah</p>
</article>
instead of
<h1>My article</h1>
<article>
<p>Blah blah</p>
</article>
Comments
Comment #1
lelizondo CreditAttribution: lelizondo commentedjust override the node.tpl.php file.
Comment #2
heyyo CreditAttribution: heyyo commentedBut now how to not display the title on page ?
Because now it is displayed twice. Which file do I need to remove the first display of the title ?
Comment #3
lelizondo CreditAttribution: lelizondo commentedthe page title is handled in page.tpl.php and not in node because not every page is a node.
if you want to hide the title on a some nodes of some content types you could use http://drupal.org/project/nodeformsettings
Comment #4
himerus CreditAttribution: himerus commentedA related post is here in the HTML5 group: http://groups.drupal.org/node/138729
It's a tough situation, and a LOT of times in my own themes, I will NOT render the page title in page.tpl.php if the page IS in fact a node... but instead pass that along to node.tpl.php to render... still as a H1 inside node.tpl.php if it IS a page view...
This may get implemented in the 3.x version, but I'd like to follow some further discussions on this to determine any gotchas or forgotten use cases for WHY the title is rendered how it is. I wouldn't be surprised to see this change in D8.
Comment #5
lelizondo CreditAttribution: lelizondo commentedIf I remember correctly, in D7 you have access to the $node variable in page.tpl.php so you can do an if and determine if it's a node or not.
Comment #6
paskainos CreditAttribution: paskainos commented#4:
Jake, has this been addressed in 3.x?
Comment #7
Cellar Door CreditAttribution: Cellar Door commentedComment #8
steinmb CreditAttribution: steinmb as a volunteer commentedHousekeeping. Should we go ahead and close or set it back to active?