Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
安装尽可能少的模块以将内容加载到自定义块中的最佳方法是什么?
我的理解是,一种简单的方法是创建一个页面回调,该回调调用drupal_json_output()然后添加一个 Drupal JavaScript 行为来查询该页面并接收 JSON 内容。
drupal_json_output()
有没有更好的方法?是否有任何内置功能?
看起来Ajax Blocks模块可能会满足您的需求。