Reputation: 30411
While in page.tpl.php, what's the difference between the two?
render($page['content']);
render($content);
Or am I just looking at this the wrong way?
Upvotes: 0
Views: 1578
Reputation: 21
Drupal 6 used $content
to display the body content, and Drupal 7 prefers $page['content']
.
See the API documentation for page.tpl.php (Drupal 6) and page.tpl.php (Drupal 7).
I'd stick with the preferred method for the version you're using to ensure you get the expected results.
Upvotes: 1
Reputation: 478
It is printing the label because you have not hidden the label in the content fields admin area. To hide it, go to structure -> content types -> manage display -> label (hidden).
Upvotes: 0
Reputation: 4190
I think that is the same, because $content
is in the array $page['content']
.
Also, do print_r($page['content']);
to see whats going on
Upvotes: 0