欢迎各位兄弟 发布技术文章
这里的技术是共享的
Kint模块是一个强大的调试工具,能够以友好的格式显示变量的内容。在Drupal 7中使用Kint模块的步骤如下:
在Drupal 7中,如果你想调试某一部分页面是由哪个函数生成的,可以使用以下几种方法和调试模块:
问题: /admin/structure/types/manage/yunweigongzuorichang/fields
如下图 Workbench Access 这个字段,我不希望看到这个字段
https://www.drupal.org/project/drupal/releases/7.91
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