用户工具

站点工具


侧边栏

drupal:theme:cck-field

Drupal CCK 主题

Image

Image Cache 主题

<?php 
  echo theme('imagecache', 'teaser_125', $node->field_logo[0]['filepath'], $node->title, $node->title);
?>

Image Field 主题

<?php
  if($node->field_logo[0]['filepath']) {
    echo theme('imagefield_image', $node->field_logo[0], $node->title, $node->title);
}?>

指定图片大小

<?php
print theme('imagefield_image', $node->field_member_picture[0], "", "", array('width' => '200'), $getsize = FALSE);
?>
drupal/theme/cck-field.txt · 最后更改: 2010/08/14 05:06 (外部编辑)