how to render create page form & list of contents in page.tpl.php I am theming an admin page &amp; I require to load/render admin forms in page.tpl.php file. The final output should be somehow like the attached screenshot. Scroll below to see screenshot &amp; code written in page.tpl.php. 

&lt;h1 class="page-title"&gt;Admin Page&lt;/h1&gt;
&lt;div class="content-left"&gt;
  &lt;!--load list of all contents("/admin/content") --&gt;
  &lt;?php print drupal_render(drupal_get_form('node_admin_content')); ?&gt;
&lt;/div&gt;
&lt;div class="content-right"&gt;
  &lt;!-- add new content form here "/node/add/page") --&gt;
  &lt;?php print drupal_render(drupal_get_form('page_node_form')); ?&gt;
&lt;/div&gt;


 

I was searching for this solution &amp; I came across this "print drupal_render()". Please suggest best solution for this. I have render same kind of pages in other tpl.php files.
It is recommended to render the forms either in preprocess function or in the custom module. Example of rendering the form in preprocess function:

function MYTHEME_preprocess_page(&amp;$variables) {
  // Assigning node_admin_content form to the variable.
  $node_admin_content = drupal_render(drupal_get_form('node_admin_content'));
  $variables['node_admin_content'] = $node_admin_content;

  // Assigning page_node_form form to the variable.
  $page_node_form = drupal_render(drupal_get_form('page_node_form'));
  $variables['page_node_form'] = $page_node_form;
}


Now to render this form in page.tpl.php:

&lt;h1 class="page-title"&gt;Admin Page&lt;/h1&gt;
&lt;div class="content-left"&gt;
  &lt;!--load list of all contents("/admin/content") --&gt;
  &lt;?php print $node_admin_content; ?&gt;
&lt;/div&gt;
&lt;div class="content-right"&gt;
  &lt;!-- add new content form here "/node/add/page") --&gt;
  &lt;?php print $page_node_form; ?&gt;
&lt;/div&gt;