hi,<br><br>here is a rookie question.<br><br>I want to split $content output before it were return by page callback function which declared by hook_menu, so that allow me to print directly $content_top and $content_main at page.tpl.php file. Meanwhile, $content_top and $content_main were generated by different function.<br>
<br>I found 2 approach to make it happen,<br><br>First one is using modulename_preprocess_page to declare variables before it were passed to template file. It works fine.<br><br>e.g. $var[&#39;$content_top&#39;]=function_name();<br>
<br>Second one is that split the content into many blocks, taking the advantages of block visibility setting option to control the appearance of regions based on the &#39;?q=&#39; path.It works fine too.<br><br>Any one know better approach to solve the problem?<br>
<br>Thanks<br><br>Wang<br>