<?php
print drupal_get_form('user_register');
?>
欢迎各位兄弟 发布技术文章
这里的技术是共享的
cs_computers 是节点类型
1) page--list-cs-computers-format.tpl.php OK 有大用 有大大用
............................
<?php
if( ! function_exists("node_add")) {
include_once(drupal_get_path('module', 'node') . '/node.pages.inc');
}
?>
<?php print drupal_render(node_add('cs_computers')); ?>
............................
2) page--list-cs-computers-format.tpl.php NOT OK 用这种方法不能得到节点的字段
............................
<?php print drupal_render(drupal_get_form('cs_computers_node_form')); ?>
............................
<?php
print drupal_get_form('user_register');
?>
print drupal_render(drupal_get_form('user_register'));
print drupal_render(drupal_get_form('user_register'));
作为 page.tpl.php 上建议的页面,但这也不起作用。没看懂啊...@bmango, thanks. This info
@bmango, thanks. This info helped me a lot.