在此路径下 /var/www/【site name】/sites/all/contemplates
根据content management->content types中type列标识的content的值建立[.tpl.php]
名字是 node-【content type value】.tpl.php
tpl.php建立后,需要到content management的templates中刷新,页面样式则load成功
ok!这就可以改变content在view页面中的显示样式。
注:字段的变量可以在 content management->templates->【content】->Template中找到。
如title: title ?>
content fields: 【field name value】[0]['view'] ?>
attached file:
$cc=count($node->field_***_attachment);
for($i=0; $i<$cc;$i++)
{
print $node->field_***_attachment[$i]['view'];
}
?>