Default / 默认 · 8月 31, 2021

“Drupal7输出区块到模板”

内容纲要

<? php
$block =block_load(‘book’,’navigation’);
$output = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block))));
print $output;

$block =block_load(‘node’,’recent’);
$output = drupal_render(_block_get_renderable_array(_block_render_blocks(array($block))));
print $output;

?>

%d 博主赞过: