Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
added 83 characters in body
Source Link

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>

enter image description here

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.

enter image description here

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>

enter image description here

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.

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>

enter image description here

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.

enter image description here

Source Link

how to render create page form & list of contents in page.tpl.php

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>

enter image description here

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.