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

评论

发表新评论

  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <hr> <div class="download"> <blockquote> <h2> <h3> <h4> <strike> <sub> <sup> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Image CAPTCHA
Enter the characters shown in the image.