Posted by SebastianW on October 5, 2012 at 6:01am
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 .
<?php
if ($page['content']!=''):
?>show div
<?php
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..
Join drupal web designers group
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.