I am theming an admin page & 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 & code written in page.tpl.php.
<h1 class="page-title">Admin Page</h1> <div class="content-left"> <!--load list of all contents("/admin/content") --> <?php print drupal_render(drupal_get_form('node_admin_content')); ?> </div> <div class="content-right"> <!-- add new content form here "/node/add/page") --> <?php print drupal_render(drupal_get_form('page_node_form')); ?> </div>
I was searching for this solution & 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.
Sponsored by SupremePR