auto expire在正文中显示到期时间

auto expire是一个可以设置node有效期的模块, 但是它在正文中并不显示到期时间. 有高人给出了patch, 详见附件.

第一个附件是完整的auto expire模块包, 解压替换掉原来的即可. 而且提供了后台设置选项, 比较简单

第二个附件则只是一个patch, 将其覆盖原文件, 然后打开你sites/all/themes/yourtheme中的node.tpl.php中使用
<?php print $auto_expire['date']; ?>
这个参数了

patch来自: http://drupal.org/node/510030

评论

发表新评论

More information about formatting options

12 + 6 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.