欢迎各位兄弟 发布技术文章
这里的技术是共享的
drupal 7 表单的省市联动功能 示例
经反复测试,是与管理员登录时与 AD 交互(可能是管理员登录时想往AD 里面写点东西),又因为 AD 有问题,所以导致登录时有时太慢
我的处理办法:
在 Drupal 7 的 settings.php 文件中开启调试选项,可以帮助你更好地理解和调试网站的行为。以下是如何设置 settings.php 文件以开启调试选项的步骤。
1) 修复数据库表 优化数据库表
2) drupal 后台清空缓存
在 Drupal 7 中,db_select 和 execute() 方法可以用于生成和执行 SQL 查询。
db_select
execute()
在 Drupal 7 中,文件字段的信息存储在多个数据库表中。主要相关的表包括:
关于 upload_max_filesize = 500M post_max_size = 1000M 见 /node-admin/3049
function custom_twenty_eighth_msg_form_alter(&$form, &$form_state
在 template.php 中 使用 覆盖 theme_menu_link 的方法
在下面 这个方法 bartik_clone_menu_link 里面,可以看到 菜单项 如何使用 ,,,,,主要见下面的红色的字及方框处
bartik_clone 是 主题名称
drupal 7 $query = db_insert($table_name)->fields($columns); 得到 $query 的 sql 语句
1) 在 nginx 中配置 ssl
见 /node-admin/20699
2) 在 settings.php 中 修改为代码 服务器是 nginx+apache
修改后,网页中html中的源代码 如下的 http ,均根据当前是 https 或 http 而自动变成 https 或 http
@import url("http://aaa.com/modules/system/system.base.css?sj7q7o");
drupal 7 d7 drupal7 get sql of InsertQuery_mysql
在 Drupal 7 中,使用 InsertQuery 来执行插入操作是非常方便的。以下是使用 InsertQuery 的基本步骤和示例:
InsertQuery
$node->comment = 1; 或 $node->comment =
在 Drupal 7 中,InsertQuery 类没有
选择: 文章 pages are not under access control
下面这个有大用
在 Drupal 的工作台(Workbench)中,从 needs_review 状态到 published 状态的钩子函数如下:
hook_workbench_moderation_transition() 这个钩子函数允许您在内容从一个工作流状态转换到另一个状态时执行自定义操作。对于从 needs_review 到 published 的转换,您可以在这个钩子函数中实现以下功能:
hook_workbench_moderation_transition()