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

这里的技术是共享的

You are here

drupal

shiping1 的头像

cck 字段 设置禁用 form alter 或者 设置 class "How to set the disabled or readonly attribute of a CCK field" "Unable to add '#attributes' or use '#disabled' = true via hook_form_alter()"有大用

function
普通分类: 
shiping1 的头像

l 函数 target _blank 有大用

l

普通分类: 
shiping1 的头像

跳转到首页 链接到首页 有大用

print

普通分类: 
shiping1 的头像

根据词汇表得到分类 表单中增加分类 select 有大用

根据词汇表得到分类 
普通分类: 
shiping1 的头像

form radio 选项卡 单选

$form['encoding'] =
普通分类: 
shiping1 的头像

drupal jquery 初始化

(function($) {$(document).ready(function() {
普通分类: 
shiping1 的头像

点全选 选中 所有的 checkbox 自己亲自做的 有大用 Is there a way to provide a Select All / Check All checkbox for a field that displays multiple checkboxes in Drupal 7?有大用

$(document).ready(function() {
     var checked = false;
    $('#edit-usersid-all-shipingzhong').click(
普通分类: 
shiping1 的头像

表单 select 的用法

$userStateLog = '近一个月内已暂停1次  最多暂停4次IP'; //启用暂停操作日志
$form['userState'] = array(
普通分类: 
shiping1 的头像

自訂表單Hierarchical Select的用法

hi!我遇到一個比較進階的問題,

就是在custom form的時候,

普通分类: 
shiping1 的头像

drupal表单元素: Check Boxes(复选框) 好像一般不使用 checkbox 有大用

drupal表单元素: Check Boxes(复选框)

普通分类: 
shiping1 的头像

FAPI:多个“复选框”与“复选框”

普通分类: 
shiping1 的头像

Drupal Form Checkbox having different name and id (of my choice)

As drupal assigns title as both id and name to a form element.
普通分类: 
shiping1 的头像

保存用户 自己亲自做的例子 有大用

<?php
//定义权限 仅仅指明什么权限对这个模块可用
function shipingzhongcustomfour_perm() {
    return array
普通分类: 
shiping1 的头像

A Drupal form checkboxes example (HTML check boxes) 一个checkbox例子

Drupal form FAQ: How do I create an HTML checkbox in a Drupal form?

普通分类: 
shiping1 的头像

Drupal 7 通过代码创建用户?

rupal 6请移步到 Drupal 6  通过代码创建用户?

很多情况下,我们需要在对某一动作操作时候,需要自动的创建用户,如

普通分类: 
shiping1 的头像

Drupal 6 通过代码创建用户? user_save 有大用

Drupal 7请移步到 Drupal 7  通过代码创建用户?

很多情况下,我们需要在对某一动作操作时候,需要自动的创建用户,如

普通分类: 
shiping1 的头像

user_save 自己亲自做的 有大用

 

$account = (object)$account;
$a
普通分类: 
shiping1 的头像

订餐表单例子

function food_order_form(&$form_state
普通分类: 
shiping1 的头像

hook_menu and multiple access arguments array two 两个参数 用法 自定义 有大用 有大大用 有大大大用

普通分类: 
shiping1 的头像

我修改 drupal6 的 /includes/file.inc 文件 让上传变成唯一性 $prefix = $user->uid.'_'.date('YmdHis').'_'.md5(uniqid(rand(), true));

file.inc 文件 就是如下 
<?php

/**
 * @file
 
普通分类: 
shiping1 的头像

APC助跑Drupal性能优化

我们在菜鸟学drupal网站性能,确切的说是php网站性能入门一文里,提到了drupal网站性能优化的总概。
普通分类: 
shiping1 的头像

Drupal的高速缓存配置APC

shiping1 的头像

Best APC settings to reduce page execution time 有大用

正确答案
普通分类: 
shiping1 的头像

Good query execution time but page execution time too high google 谷歌 "drupal page execution time high"

普通分类: 
shiping1 的头像

drupal page execution time high google 谷歌 "drupal page execution time high"

普通分类: 
shiping1 的头像

DRUPAL 运行缓慢的原因

不止一次听人抱怨DRUPAL 慢,在本地开发环境尤为常见,较为常见的原因有:~ ( 关闭db log  / watch dog 吧.... 鸡肋)

普通分类: 
shiping1 的头像

多行文本不进行转义 (不原样输出)

普通分类: 
shiping1 的头像

一个template的例子

<?php
 
 
/**
 * Implementation of HOOK_theme().
 */
function shipingzhong_theme(& $existing, $type, $theme, $path) {
$hooks = zen_theme($existing, $type, $theme, $path);
// Add your theme hooks like this:
/*
$hooks['hook_name_here'] = array( // Details go here );
*/
// @TODO: Needs detailed comments.
普通分类: 
shiping1 的头像

获取 views 的条目数 数目 总和 总计 大小 有大用

在 views 的模板文件中 views-view--allcontentview--page-33.tpl.php (由views-view.tpl.php 得到的精细化文件)中 
普通分类: 
shiping1 的头像

在 hook_nodeapi 中程序来保存字段 自己亲自做的 有大用

 //在插入前 和插入后执行的动作
function shipingzhongcustomtwo_nodeapi(&$node, $op
普通分类: 

页面

Subscribe to RSS - drupal