You are here

Drupal手机码(Mobile Codes)模块

g089h515r806 的头像
Submitted by g089h515r806 on 星期日, 2010-05-23 15:53

项目地址: http://drupal.org/project/mobile_codes

中文文档: 

Mobile Codes使用中的心得

  http://www.syoi.net/node/285

Mobile Codes使用中的心得(二)  http://www.syoi.net/node/286

模块主要用于生成手机上所用的QR二维码,它提供了输入格式,Views/CCK格式器,Drupal API 主题化,可配置的预设置等特性.

输入过滤器用法:

[mobilecodes type="type" data="data type" size="size" name="name" tinyurl="tinyurl"]content[/mobilecode]
或者
[mobilecodes profile="profile"]content[/mobilecode]

CCK/Views 格式器用法:

在文本字段显示选项中选择Mobile Codes 预设置

使用theme_mobilecode():

theme('mobilecode', 'content', array(arguments)) 主题层

参数含义:

preset: Mobile Codes 预设置:

可以为默认值,或者用户定义的.

data : 手机条形码数据类型 linkphone、text

type :手机条形码类型 dm、qr

size:手机条形码的大小 small、medium、arge

name :手机条形码的名字, 用户定义的。

tinyurl :TinyURL行为(仅用于URL),

0,只有在URL超过60个字符的时候,才转化为TinyURL

1,总转化为TinyURL

content:嵌入到手机条形码中的数据,用户定义。

只有content是必须的,其它的都有默认值可用。

 

 

Drupal版本: