GMgKe586q6suSQnyqZLlGCooeWM

Pages

Search

Friday, March 11, 2011

Drupal - Expose Page Variables

To expose all available of the page variables, type:
   var_dump($page);
in the page.tpl.php
for example you can display the page content by typing this below in page.tpl.php
<?php print $page['content']['system_main']['nodes'][3]['body']['#object']
            ->body['und'][0]['value'];?>
Share/Bookmark

No comments:

Post a Comment