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

作者: GGX   发表于: 2009-10-26 15:05
分类: 

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

评论

发表新评论

The content of this field is kept private and will not be shown publicly.