drupal-render

Render a Drupal node

元气小坏坏 提交于 2019-12-22 02:34:07
问题 I would like to show a node inside another node. So I retrieve the node id of the second node and I would like to render/print/... it inside another node. But I'm not sure how to do this. I've tried drupal_render , node_view , print ,... but with no results. Any advice? $nid = $node->field_linked_fiche['und'][0]['nid']; $fullFiche = node_load($nid); EDIT - the whole template <?php /** * @file * Bartik's theme implementation to display a single Drupal page. * ... */ ?> <div id="page-wrapper">

Render a Drupal node

限于喜欢 提交于 2019-12-04 23:47:48
I would like to show a node inside another node. So I retrieve the node id of the second node and I would like to render/print/... it inside another node. But I'm not sure how to do this. I've tried drupal_render , node_view , print ,... but with no results. Any advice? $nid = $node->field_linked_fiche['und'][0]['nid']; $fullFiche = node_load($nid); EDIT - the whole template <?php /** * @file * Bartik's theme implementation to display a single Drupal page. * ... */ ?> <div id="page-wrapper"><div id="page"> <div id="header" class="<?php print $secondary_menu ? 'with-secondary-menu': 'without