Drupal
空山
这个作者很懒,什么都没留下…
展开
-
Drupal模板变量 – node.tpl.php
Drupal模板变量 – node.tpl.php MiMi Posted on 2009.02.20 20:41 // No Comments node.tpl.php中可用的变量: $content: 返回节点的主体部分。 $date: 返回节点被创建的格式化日期。 $taxonomy: 返回由节点的分类词语构成的数组。 $terms: 返回与该节点相关的分类单词的H...原创 2011-11-25 16:39:55 · 121 阅读 · 0 评论 -
Drupal中判断当前页面为分类页的方法
Drupal中判断当前页面为分类页的方法 MiMi Posted on 2009.11.05 00:01 // 1 Comment 在Drupal中,分类系统路径都是类似这种格式: taxonomy/term/10 taxonomy/term/17 那么,根据Drupal API,判断当前页面为分类页面,可以这样写: if ( arg(0) == ‘taxonomy’ &am...原创 2011-11-25 16:41:50 · 102 阅读 · 0 评论 -
自定义函数显示 Drupal 分类列表
自定义函数显示 Drupal 分类列表 MiMi Posted on 2009.12.09 20:06 // 4 Comments Drupal中的CCK和View模块功能强大,几乎可以用鼠标点出你想要的任何内容。 但耗费的性能和效率问题也与它的功能一样强大。 其实CCK和View能实现的我们手动一样可以实现,而且异常简单。 以国内网站最常见的显示某一分类最新文章列表为例...原创 2011-11-25 16:42:11 · 102 阅读 · 0 评论