Drupal 7 ajax表单提交不起作用
I have a node page where I need to create a reply form via ajax for commenting. Commenting in my system is also a kind of node. 我有一个节点页面,我需要通过ajax创建一个...
drupal优化全攻略
下面是drupal优化的一些经验。分四大部分来讲。 第一部分:Drupal系统本身的设置来达到优化 第二部分:针对php代码进行的优化 第三部分:针对MYSQL数据库进行的优化 第四部分:针对网站架构进行的优化 第一部分:Drupal系统本身的设置来达到优化 1、 把javascrip代码和....
WordPress用户导入Drupal7并登录
用户导入比较简单。使用Feeds模块中的Feeds Import工具就行。不过有个不好地方的,导入前密码是明文,导入后该模块会自动转换为Drupal加密后的密码。这需要导入后原wp的用户也能登录drupal。幸运的是安装一个模块后即可:参考:https://www.drupal.org/node/2...
drupal优化全攻略
下面是drupal优化的一些经验。分四大部分来讲。 第一部分:Drupal系统本身的设置来达到优化第二部分:针对php代码进行的优化第三部分:针对MYSQL数据库进行的优化第四部分:针对网站架构进行的优化 第一部分:Drupal系统本身的设置来达到优化1、 把javascrip代码和.js文件挪到页...
drupal 通过hook_menu实现添加菜单
$items['mypayment/onlinepay']=array( 'title' => '在线充值', 'description' => '在线充值', 'page callback' => 'mypayment_page',
Drupal 初次使用感受,后续补充。
很久以前就接触过,下载下来安装,结果界面太丑,太难看,直接删除。 最近重新想到开源CMS,好奇看到那么多人推崇drupal,也便下载来重新研究了下。 刚接触了下,不过整体使用感觉很差,尤其几个地方: 1)本地安装都非常缓慢,途中还提示执行超时。 可想而知,如果放到网上去,会怎么样的卡资源?空间提供...
如何在drupal中仅显示admin的表单
I create a module in drupal to show record in front end . Now i want to make a form so that admin can insert data . I tried to make a link with _menu(...
如何在drupal表单中隐藏字段
I have a specific content type in drupal6. I want to implement a hook, wich hides the body field of that content type from the add form, but not from ...
如何在Drupal 7中创建表单,在管理面板中保存数据并在excel中导出数据?
I need your help. How to create form in Drupal 7 with save data in admin panel and export data in excel? 1) The first step: When users click to button...
如何更新Drupal 7 AJAX表单?
I am creating a Drupal 7 module. Currently my goal is to get the form to insert something into the database and then tell the user that it worked. I c...
Drupal 7 WHERE使用OR和AND
Writing a custom module trying to look up comments. I have a SQL statement as follows: 编写自定义模块试图查找注释。我有一个SQL语句如下: $client_comment = db_query("SELE...
如何在drupal表下拉列表中创建所有语言的数组
I need to create dropdown list for all languages in my Drupal form, Is there any function in PHP to achieve this. I want to create an array of all lan...
Drupal:显示每个用户的贡献列表(发布的内容)
I’m searching for a way to display on a member profile page, the number of contributions in some content types. Basically it has to display something ...
首次发现linux+lamp环境下安装drupal7出现的一个错误。
drupal7.2 安装到set up database时出错,页面跳转至 The requested page "/drupal/" could not be found. 或者 The requested page "/" could not be found. 检查数据库发现数据表安装不完整,...
显示一个没有页面模板的Drupal视图
I would like to display a Drupal view without the page template that normally surrounds it - I want just the plain HTML content of the view's nodes. 我...
运行没有数据库的Drupal 7网站
I have developed a beautiful website in Drupal 7. During hosting it to main server, I realized that the server doesn't have any database facility in i...
Drupal 7以编程方式从不同模块调用钩子函数
How do I call a hook function in a separate file from mymodule.module? 如何在mymodule.module的单独文件中调用钩子函数? Using Features and Node Export, there is array ...
Drupal 7仅当页面是分类页面时才打印块区域
I just want to print my region in de page.tpl.php only if the current page is a taxonomy page. So I need something like a check if the current page is...
什么是最好的Drupal部署策略?
I am working on my first Drupal project on XAMPP in my MacBook. It's a prototype and receives positive feedback from my client. 我正在我的MacBook上研究我在XAMPP...
SQL最后一次插入Drupal。它真的线程安全吗?
I have a query that might be executed by several users consecutively. I'm scared that if I run the db_last_insert_id command, some users might not get...