欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

drupal

hook_menu 涉及百分号 % 有大用

普通分类: 

drupal form alter field modidy order 修改表单字段顺序 有大用


通过  
$export
= kprint_r($form,true);
普通分类: 

Using #theme to override theme_checkboxes 但是 checkboxes checkbox 中的 option options 选项却没有 我自己亲自做的 有大用 有大大用

普通分类: 

如果 devel Theme developer info 点击了左下角的复选框不起作用 有大用 有大大用

如果 devel Theme developer info 点击了左下角的复选框不起作用,就 清空缓存,


下图是起作用的

image.png

普通分类: 

​Drupal Tag Modules

Drupal Tag Modules

普通分类: 

drupal two taxonomy Multiple taxonomies 两个分类 多个分类 两个栏目 多个栏目 有大用

普通分类: 

自定义标签 自定义标记 自由标签 自由标记用户连续添加标签,每个标签可选择编辑删除以及公开不公开 自定义标签 有大用 有大大用

鼠标 点击 表单元素 click 事件 select change onchange 事件 提交表单 form submit 有大用


普通分类: 

drupal drupal_get_from 传递参数给表单 (当然能数可以省掉) drupal 书上 方擎写的订餐系统 自己亲自做的 有大用 有大大用

<?php

//这是调用表单 

 print drupal_get_form('food_order_form', $node; ?>

?>


表单函数

function food_order_form(&$form_state,$node)

{

    $form['order'] = array(

            '#type' => 'fieldset',

            '#title'  => '订餐: '.$node->title,

        );

    $form['order'] ['order_qty']= array(

普通分类: 

db_query($sql,占位符) 有大用

db_query 后面的占位符可以是一个接一个的变量,

比如 db_query($sql,$arg0,$arg1,$agr2...)    //$arg0,$arg1,$agr2 均为字符串变量或数字变量等 

也可以是数组  

比如 db_query($sql,$args)  //$args 是一个数组

普通分类: 

views 自定义 php 代码 views_php 可以计算某个字段的和 有大用

普通分类: 

Uncaught TypeError: Cannot read property 'type' of undefined at thmrRebuildPopup (devel_themer.js?7:193) at themerDoIt (devel_themer.js?7:87) at HTMLDocument.themerEvent (devel_themer.js?7:126) 有大用 有大大用

Theme developer 开启后 点了不起作用,看chrome的开发者工具,报下面的错,

全部清空一下缓存就可以了 (虽然还有其它的错,但是这个工具Theme developer 可以使用了)


Uncaught TypeError: Cannot read property 'type' of undefined

    at thmrRebuildPopup (devel_themer.js?7:193)

    at themerDoIt (devel_themer.js?7:87)

    at HTMLDocument.themerEvent (devel_themer.js?7:126)




普通分类: 

drupal 通过命令行 执行 php 访问url 页面 执行页面 有大用 有大大用 有大大大用

1)  cd 到 网站的根目录下(这一步不能少)

2) [root@mail public_html]# php index.php -q cron_birthday_send_message)  ( 没有-是不可以的)

        php 可以全路径吧

普通分类: 

How can I run cron.php via crontab?

普通分类: 

Configuring cron jobs using the cron command

普通分类: 

php----------php安装xhprof扩展和简单使用

安装和配置XHProf(Ubuntu) 有大用

问题描述

普通分类: 

drupal xhprof 报错 以及 有问题 空白 有大用

warning: array_reverse() expects parameter 1 to be array, null given in /home/wwwroot/aaaaa/public_html/sites/all/modules/xhprof/XHProfRunsFile.inc on line 120.

warning: Invalid argument supplied for foreach() in /home/wwwroot/aaaaa/public_html/sites/all/modules/xhprof/XHProfRunsFile.inc on line 98.

warning: Invalid argument supplied for foreach() in /home/wwwroot/aaaaa/public_html/sites/all/modules/xhprof/xhprof.module on line 257.

So after installing xhprof:

- check your /etc/php.d/xhprof.ini or /etc/php.ini;

- set the xhprof.output_dircorrectly;

普通分类: 

Getting errors during install about preg_match() disallowed Unicode code point 有大用

普通分类: 

drupal 显示错误 要看错误 ( 包括cron 执行失败 ) 显示 查看 错误记录 告警 报错 错误日志 有大用 有大大用 有大大大用 有大大大大用

普通分类: 

ykt cron 自动执行

[root@ebs-28766 ~]# vim /root/cron_ykt_cron.sh

#!/bin/bash

#

# this is the standard Drupal cron invocation that runs from cron

#     this will flush the Page Cache when Minimum Cache Lifetime set to <none>

#

wget -O - -q -t 1 http://ykt.aaaa.com/cron.php?cron_key=uWdddddddfMQk0

#

# use the sitemap and reload the Page Cache by accessing each page once

#

普通分类: 

drupal 7 drupal7 d7 不显示报告错误信息 禁止错误 禁用错误 不显示错误 有大用

admin/config/development/logging

image.png

普通分类: 

如何查看 drupal 版本 在状态报告里面 有大用

image.png

普通分类: 

How to fix "The following module is missing from the file system..." warning messages 固定模块丢失错误 有大用

普通分类: 

drupal6 drupal7 drupal8 在开发过程中显示错误

普通分类: 

maintenance-page.tpl.php maintenance-page--offline.tpl.php 不同区别 difference 有大用

image.png

普通分类: 

定制维护页面HTML

译者:这个文档描述的Drupal 6.x的维护页面定制方法。对D7应该也有一定的参考意义。 虽然是Drupal 6.x的文章,但觉得这篇文章有点Drupal way的意思,所以强自翻译,请指正。

原文如下:

普通分类: 

drupal7模板命名机制/规则 得到模板变量 有大用 有大大用

普通分类: 

drupal drupal7 jquery 发现 本站 chrom firefox 消耗 cpu 比较高 占用率高 100% 有大用

打开chrome 的 任务管理器看看 如何打开 /node-admin/11840

确定是本网站的 cpu 占用过高


进chrome 的隐身模式 ( ctrl+shift+n )cpu 占用也不高


比较与另一个网站 发现 drupal.js 文件不对

把另一个网站好的 drupal.js 覆盖它就可以了

普通分类: 

drupal7 内核 自带的模板文件

页面

Subscribe to RSS - drupal