By SebastianW on
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
.
show div
But this is not work. Div always show.
if ($page['content']!=''): show div
endif; But this is not work. Div always show.
Thx for advice.
Comments
$page['content'] refers to
$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..
thx for repley. I will try
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.