dougu1985 2010-08-05 12:47
浏览 110
已采纳

如何在Drupal中重写的views-view-list.tpl.php模板中访问CCK字段值?

I've overridden the views-view.list.tpl.php. I want to optionally included some extra HTML markup if a value in a CCK field for the current node is set to certain values.

How can I access CCK field values in a views-view.list.tpl.php view template file?

  • 写回答

2条回答 默认 最新

  • dongye9453 2010-08-05 14:29
    关注

    views-view.list.tpl.php. does the whole list not a node, are you wishing to style the whole list or just an item?

    in views-view-fields.tpl.php there is a $fields variable defined which should have what you want.

    You should try devel and theme developer they will make this much easier than using SO.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?