Drupal 7 - How to change multiple drop-downs using AJAX?
I'm new to Drupal & PHP. I have a similar problem to this unanswered question and I could not find one myself. 我是Drupal和PHP的新手。我对这个悬而未决的问题有类似的问题,我...
将一个drupal站点复制到另一个drupal站点并复制带前缀的数据库后,Drupal数据库错误
I duplicated a Drupal site and the database from the first one to another. Of course i copied files from 1st instance to 2nd. 我将Drupal站点和数据库从第一个站点复制到...
使用Javascript从Drupal打开新选项卡
I am trying to open a new tab when a certain menu link is clicked in Drupal. One way I thought about doing is embedding a Javascript code within the c...
为 Drupal 7 构建一个新主题
主题解释了 Drupal 网站的用户界面 (UI)。虽然主题结构并没有明显的变化,但 Drupal 版本 7 配备了一个新的主题实现方法。本文演示了如何创建一个新的 Drupal 7 主题。Drupal 主题的目标是将框架的处理逻辑和设计元素分开。为了做到这一点,Drupal 采用了一个复杂的主题系...
drupal 7在一个form新增或者修改一个字段
例如在以下页面新增一个工号字段 在模块文件里面通过hook_form_FORM_ID_alter 函数修改,比如 图中的helloworld是模块名称,也就是你在哪个模块里面写这个函数那么名称就是什么(此例子在helloworld.mod...
DRUPAL点滴
1 admin/config/user-interface/xxx在hook_menu里定义这样一个path,就会在configuration界面看到xxx的链接2 $news_items = db_select('node', 'n'); ->where('ssss') 可以直接加where...
在Drupal自定义模块中获取ajax分页值?
I have slideshow page comes from view 我有幻灯片页面来自视图 Page URL: http://localhost.com/entertainment/word 页面URL:http://localhost.com/entertainment/word In t...
关于第一个参数的Drupal hook_menu通配符
I am looking to make a wildcard page on 我正在寻找一个通配符页面 $items['%/pagename'] But I can't get it to work. Anyone got a solution? 但我无法让它发挥作用。有人有解决方案吗?1 个解决...
Drupal启动阶段之四:系统变量
Drupal的系统变量是指保存在后台数据库variable表中的一些参数设置,透过variable_get()和variable_set()存取:先看一看_drupal_bootstrap_variables()的代码:function _drupal_bootstrap_variables() {...
Drupal7 模块开发 之 定义模块
定义模块info文件 Drupal7里面info包括这些选项: name 它的意思是模块名字,必须得要的;你得知道你给drupal开发模块的名字是啥吧? description 这个是模块的描述;告诉drupal你的模块是做啥的;可选; core 说明这个模块是运行在哪个drupal版本...
Drupal如何使视图显示为列而不是行
I am trying to get a drupal 6 view to display in a column format rather than rows. Basically I want to group my pictures/video by taxonomy and display...
drupal7的node的内容的存储位置
标题是存在node表中的,但是实际内容存在表field_data_body中
drupal 常用表单元素
说明:本文的表单使用都是基于drupal7 【drupal官方api文档】https://api.drupal.org/api/drupal/developer!topics!forms_api_reference.html/7.x drupal最常用的就是灵活的模块开发功能,而模块里面表单的使用,...
是否有用于导入文本和图像的Drupal模块?
I'm very new to Drupal, and am wondering if there's an API that external programs can call to transfer text and images directly into my Drupal site. 我...
[Drupal教程] 如何添加CSS和Javascript定制Drupal7表单
Drupal7表单定制和Drupal6大致相同,但是也有一些区别。这次我就来说说Drupal7是如何定制表单的。新建一个“form_theme”模块,然后创建一个表单,显示如下: My name is [FORM INPUT] [FORM INPUT] and I am [FORM INPUT] ...
drupal7 form模板复写方法
给form制作一个template 从官方的drupal api document中可得到form有#theme这个参数,它可以指定form使用一个模板来用于form的基本布局,#theme的值必须是通过hook_theme声明的key。一般情况下,即使不去声明#theme,#theme也会有一个与...
drupal7 转化 public:// 为实际url
file_create_url('public://xxx.png'); // 得到URLdrupal_realpath('public://xxx.png'); // 得到系统路径(磁盘路径,如D:\....) ...
drupal7用手动sql获取内容
Im trying to get all the articles from the drupal7 table using manual sql method, I am trying to use the tables named field_data_body, node, file_usag...
这些优化 Drupal 网站速度的超简单办法,你忽略了多少?
“怎么样能让我的 Drupal 网站更快一些?”是我们最常遇到的一个问题。站点速度确实非常重要,因为它会影响你的 SEO排名效果、访客是否停留以及你自己管理网站所需要的时间。今天我们就来看看那些通过 Drupal 自带界面便能够实现的提速操作。启用缓存通过访问“管理>配置>开发>性...
Drupal的默认密码加密方法是什么?
I am trying to figure out what is the security that Drupal 6/7 uses by default to store passwords. Is it MD5, AES, SHA? I have been unable to find any...