【问题标题】:Drupal 7 node add form ajax not workingDrupal 7节点添加表单ajax不起作用
【发布时间】:2013-04-29 15:17:15
【问题描述】:

我正在使用 drupal 7,我正在使用此处提供的解决方案嵌入节点添加表单:Drupal 7 - How to display node/add/sometype form on another page?(使用 node_add('content_type'))

表单显示正常,但有一个问题,“添加另一个项目”按钮无法正常工作,我可以看到正在发送的 ajax 请求,但它不会返回任何内容并且没有错误,我正在敲我的头现在已经过去 2 个小时了,但找不到解决方案。

如有任何帮助,将不胜感激。

【问题讨论】:

  • 这里有同样的问题。很想看到这个问题的答案。

标签: drupal-7


【解决方案1】:

改变你的节点表单并在其表单构造函数中包含以下行:

form_load_include($form_state, 'inc', 'node', 'node.pages');

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多