Drupal Module – Computed Field

ComputedField是一个强大的CCK字段模块,允许用户为内容类型添加自定义的计算字段。这些字段通过PHP代码填充,可以利用Drupal提供的各种资源,如其他字段、当前用户、数据库表等。计算字段可以选择存储在数据库中或其他内容字段一起,或者在节点视图时即时计算(尽管Views模块需要数据库存储的值)。此模块功能多样,堪称CCK字段中的瑞士军刀。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Computed Field is a very powerful CCK field module that lets you add a custom "computed fields" to your content types. These computed fields are populated with values that you define via PHP code. You may draw on anything available to Drupal, including other fields, the current user, database tables, you name it. (Feeling the power yet? :) ) You can also choose whether to store your computed field values in the database with other content fields, or have them "calculated" on the fly during node views. (Although you should note that Views use requires database stored values.) This field is literally the Swiss Army knife of CCK fields. So start cooking up your PHP based values!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值