I think the first approach will be easiest to manage.. You don't have the block system overhead and possible problems with the visibility settings.<br>But as you say, both approaches are probably fine.<br><br><div class="gmail_quote">
2010/1/14 Wang Zi Feng <span dir="ltr"><<a href="mailto:frank.zifeng@gmail.com">frank.zifeng@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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['$content_top']=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 '?q=' path.It works fine too.<br><br>Any one know better approach to solve the problem?<br>
<br>Thanks<br><font color="#888888"><br>Wang<br>
</font></blockquote></div><br>