Hi Andrew, thanks for your instruction. <br><br>I tried what you suggested. by using modulename_preprocess_page() theme hook, different template page.tpl.php file could be implemented by different path request. <br><br>Could you also see the code for me, I wonder if any better way to get same result?<br>
<br>the hook_menu path is games, and it will invoke page-games.tpl.php when visit ?q=games link.<br><br>function showpath_preprocess_page(&amp;$variables){<br><br>if(drupal_strtolower(arg(0))==&#39;games&#39;){<br>    $suggestions[] = &#39;page-games&#39;;<br>
    $variables[&#39;template_files&#39;]=$suggestions ;<br><br>    <br><br>}<br>}<br><br>THanks for your kind help<br><br>Frank<br><br><br><br><br><div class="gmail_quote">2009/9/28 andrew morton <span dir="ltr">&lt;<a href="mailto:drewish@katherinehouse.com" target="_blank">drewish@katherinehouse.com</a>&gt;</span><br>


<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I&#39;m not totally clear what you&#39;re trying to do but it seems like you<br>
could use a preprocess hook (e.g. modulename_preprocess_page()) to<br>
alter the &#39;template_files&#39; variable that the theme system uses to find<br>
candidate files. I&#39;d suggest reviewing the code in<br>
template_preprocess_page() to see how the list of candidates is<br>
assembled.<br>
<font color="#888888"><br>
andrew<br>
</font><div><div></div><div><br>
On Mon, Sep 28, 2009 at 3:34 AM, wang zifeng &lt;<a href="mailto:frank.zifeng@gmail.com" target="_blank">frank.zifeng@gmail.com</a>&gt; wrote:<br>
&gt; Hey Guys, first I am new to drupal development and try to learn everything<br>
&gt; about drupal by scratch. My questions might be easy to you but still hard<br>
&gt; for me, so any reply is welcomed and appreciated.<br>
&gt;<br>
&gt; Recently, I am going to create a customize module that to show all the blog<br>
&gt; members with their avatars triggering by hook_menu ‘?q=blog’ path.<br>
&gt;<br>
&gt; I write the code as what the drupal module development guide taught,  first<br>
&gt; to use hook_menu to route the path as well as the callback function, then<br>
&gt; use hook_theme to state the template, and then use theme() function in the<br>
&gt; customize function to call template, last is use template_preprocess<br>
&gt; function to create the variables before it pass to template file.<br>
&gt;<br>
&gt; But I found, all the variables that passed to the template file was packed<br>
&gt; into ‘contents’ region finally and placed into the template file. In other<br>
&gt; words, I can’t change the variable into other region, so that let me create<br>
&gt; a fully customize template for a specific path.<br>
&gt;<br>
&gt; For a clearer understanding of my problem:<br>
&gt;<br>
&gt; For example, like the difference between page.tpl.php and<br>
&gt; page-front.tpl.php, the second one could be fully customized with regions.<br>
&gt;<br>
&gt;  If I want to call page-blogmember.tpl.php trigger by ‘?q=blogmember ‘ to<br>
&gt; show all the blog avatars but with a fully customized region template, how<br>
&gt; can I do.  Like creating customized channel by ?q=video or ?q=game.<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Frank<br>
&gt;<br>
</div></div></blockquote></div><br>