Hello,
I have problem witch page content.
When I add new content ( page ) i leaved body empty.
Now in page.tpl.php I want to check is body empty or not and than show

.
if ($page['content']!=''):
show div
endif;
But this is not work. Div always show.

Thx for advice.

Comments

dwdg’s picture

$page['content'] refers to the entire content(including wrappers) of the body. so you may need to check it using specific node value using node_load function..

SebastianW’s picture

thx for repley.
I will try :)
But I am just start with drupal so if i can't do this I will type to you.